Skip to content

Conversation

alvarowolfx
Copy link
Contributor

@alvarowolfx alvarowolfx commented Jun 27, 2025

Draft PR on an idea to avoid the issue reported on #1384, 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 #1384
Fixes #1489

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

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

2 participants