-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(bigquery): add support for bignumeric #2779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is an in-progress change to support BIGNUMERIC values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update the PR body? Or accidental review request?
I'm not familiar with this code. So, it seems to make sense, but this is mostly a style review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Partial digit" question is still open, otherwise LGTM.
This PR adds basic support for the BIGNUMERIC type in BigQuery.
This library has several cases where it tries to infer the appropriate BigQuery type from a native Go type. For
big.Rat
types, we continue the existing behavior of mapping them to NUMERIC, as the big.Rat doesn'tprovide a general way of indicating desired precision or scale to determine whether BIGNUMERIC is a more
appropriate mapping.