-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Improve BQ test utils to support JSON in a more simple manner #22942
Conversation
r: @Abacn |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
Thanks for the fix. Could you please providing some context of the change, like what current issue we have using INT32? |
thanks @Abacn - I've added an explanation on the top comment of the PR. |
Run Java PostCommit |
Run Java PostCommit |
Retest this please |
feels like jenkins is targeting me personally : ) lol |
Run Java PreCommit |
Run Java_Examples_Dataflow_Java11 PreCommit |
uggg these don't repro in my local env |
Run Java PostCommit |
Run Java_Examples_Dataflow PreCommit |
Run Java PreCommit |
errors unrelated. Feel free to review @Abacn |
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.
LGTM, thanks
Run Java PreCommit |
…#22942) * Improve BQ test utils to support JSON in a more simple manner * Fix storage api path * fix boolean tests * fixup * double is representable in JSON * same * Doubles can be represented in JSON as well
…#22942) * Improve BQ test utils to support JSON in a more simple manner * Fix storage api path * fix boolean tests * fixup * double is representable in JSON * same * Doubles can be represented in JSON as well
…#22942) * Improve BQ test utils to support JSON in a more simple manner * Fix storage api path * fix boolean tests * fixup * double is representable in JSON * same * Doubles can be represented in JSON as well
…2926 and apache/beam/apache#22942 in snapshots
BigQuery testing utilities (and some prod utilities as well) default to converting individual data values into strings when converting data to JSON-encoded TableRow objects. This makes some testing difficult, as data types can't be recovered properly.
This change ensures that JSON conversion preserves the data type when possible in JSON (boolean, int32, float, double) so that testing and other consumers of TableRow data can expect correct types.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).addresses #123
), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.