-
Notifications
You must be signed in to change notification settings - Fork 443
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
feat(BigQuery): Add JSON datatype #6412
Conversation
7d0931b
to
e33ee4d
Compare
e33ee4d
to
b186bdb
Compare
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.
Approach looks good, but make tests more robust.
c7585b1
to
783e599
Compare
@vishwarajanand Made the required changes, Please have a look! Thank you! |
58e23e0
to
15100de
Compare
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.
Per our internal discussions, we want the user to parse the JSON and the library will only provide a JSON string.
Some considerations (not all) are PHP's json_encode
or json_decode
doesn't actually cover all the possible range of JSON values (such as float, decimals) as supported by backend, nested JSON depth also might increase in future, as opposed to max 512 allowed in PHP.
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.
Change the design to accept and return JSON as strings
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.
Left a few questions which potentially requires some changes.
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
This PR add JSON datatype in BigQuery. Also resolves #6413 #5151
go/php-bigquery-json-datatype