Skip to content
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

[java] BQ: add missing avro conversions to BQ TableRow #33221

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

RustedBones
Copy link
Contributor

Fix #33197

Add missing avro -> BQ conversions:

  • float -> INTEGER
  • time-millis -> TIME
  • timestamp-millis -> TIMESTAMP
  • local-timestamp-millis -> DATETIME
  • local-timestamp-micros -> DATETIME
  • enum -> STRING
  • fixed -> BYTES
  • map -> RECORD key/value

Reworked BigQueryAvroUtilsTest to test conversions in isolation.

Ideally BigQueryAvroUtils should also provide a schema converter avro.Schema -> TableSchema to facilitate write of avro model to BQ

Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

Avro float fields can be used to write BQ FLOAT columns.
Add TableRow conversion for such field.

Adding conversion for aveo 1.10+ logical types local-timestamp-millis
and local-timestam-micros.
@RustedBones
Copy link
Contributor Author

Follow-up: RustedBones#108

Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @damondouglas for label java.
R: @johnjcasey for label io.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

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

Successfully merging this pull request may close these issues.

[Bug]: BigQueryAvroUtils don't handle Avro FLOAT type correcty.
1 participant