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

Merged
merged 6 commits into from
Dec 10, 2024

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).

Copy link
Contributor

github-actions bot commented Dec 4, 2024

Reminder, please take a look at this pr: @damondouglas @johnjcasey

@Abacn Abacn assigned Abacn and unassigned Abacn Dec 6, 2024
@Abacn Abacn self-requested a review December 6, 2024 15:43
@Abacn
Copy link
Contributor

Abacn commented Dec 6, 2024

Thanks for the change! Just had two questions.

Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Abacn Abacn merged commit 6d8e02e into apache:master Dec 10, 2024
18 checks passed
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.
2 participants