Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Comments

feat: allow to skip wrapping data into custom types#1490

Closed
alvarowolfx wants to merge 1 commit intomainfrom
feat-skip-wrap-custom-types
Closed

feat: allow to skip wrapping data into custom types#1490
alvarowolfx wants to merge 1 commit intomainfrom
feat-skip-wrap-custom-types

Conversation

@alvarowolfx
Copy link
Contributor

@alvarowolfx alvarowolfx commented Jun 27, 2025

Draft PR on an idea to avoid the issue reported on googleapis/google-cloud-node#7229, where for some customers, having the custom types actually makes it harder to manipulate data. Naming is hard, not sure what is the best option name here.

Fixes googleapis/google-cloud-node#7229
Fixes googleapis/google-cloud-node#7227

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/nodejs-bigquery API. labels Jun 27, 2025
@alvarowolfx alvarowolfx requested a review from leahecole July 1, 2025 16:41
Copy link
Contributor

@leahecole leahecole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initial small thoughts

rows: TableRow[],
options: {
wrapIntegers: boolean | IntegerTypeCastOptions;
skipWrapCustomTypes?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - can this be the last option? I know order isn't necessarily preserved but I feel like we should have these options in the order in which we have added them

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional comment on this line - Any reason why we can't call this wrapCustomTypes? I know it would flip the boolean logic later on, but it would be in line with the wrapIntegers naming scheme

value: any,
options: {
wrapIntegers: boolean | IntegerTypeCastOptions;
skipWrapCustomTypes?: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same note about order of options

@sofisl sofisl closed this Feb 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/nodejs-bigquery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prevent type conversion to Big and BigQueryTimestamp Converting result set to simple types

3 participants