-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-4417] Fix the expected encoding of BigQuery's NUMERIC type when reading from Avro #5948
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
…m Avro. The NUMERIC data type is represented in Avro using the BYTES type with the DECIMAL logical type. I verified this change using BigQueryTornadoes.java, which I modified (locally) to write NUMERIC values to BigQuery, then read them back using Dataflow and write them to a new BigQuery table. The test failed as expected without this change, but now passes, and I can see the correct content in the table. Context: #5755 (comment)
|
@kennknowles I'd appreciate it if you could take a look at this PR as well, thanks! |
|
I will review this today. Thank you @ElliottBrossard |
|
Run Java PostCommit |
|
The change LGTM, however it is breaking tests. cc: @akedin will take a look it error. |
|
Looking at it, can reproduce, but not sure how these changes could have affected the failing test. Probably it was already broken, checking on master |
|
Ah, it fails on master and I think it's a known issue. @apilloud , @amaliujia can you take a look? |
|
Run Java PostCommit |
|
LGTM |
|
@aaltay, any comments? Thanks! |
|
Thank you all! |
The NUMERIC data type is represented in Avro using the BYTES type with the DECIMAL logical type.
I verified this change using BigQueryTornadoes.java, which I modified (locally) to write NUMERIC values to BigQuery, then read them back using Dataflow and write them to a new BigQuery table. The test failed as expected without this change, but now passes, and I can see the correct content in the table.
Context: #5755 (comment)