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

Upgrade to Beam 2.63.0 #5613

Merged
merged 4 commits into from
Feb 24, 2025
Merged

Upgrade to Beam 2.63.0 #5613

merged 4 commits into from
Feb 24, 2025

Conversation

clairemcginty
Copy link
Contributor

Contains bugfixes for BQ Storage-API writes and BQ Avro-format reads.

Comment on lines 191 to 206
it should "write case classes using Storage Write API" in {
runWithRealContext(options) { sc =>
sc.parallelize(records)
.saveAsTypedBigQueryTable(
typedTableStorage,
createDisposition = CREATE_IF_NEEDED,
method = WriteMethod.STORAGE_WRITE_API
)
}.waitUntilFinish()

runWithRealContext(options) { sc =>
val data = sc.typedBigQuery[Record](typedTableStorage)
data should containInAnyOrder(records)
}
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both of these tests are failing. LocalTime fields are being written incorrectly using the Storage Write API. For example, for the same record, FileLoads will write the value 19:00:00 and StorageWrite will write the value 15:59:15.338944. Not quite sure what's going on, needs investigation.

Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 25.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 61.33%. Comparing base (34729e0) to head (161d2da).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...scala/com/spotify/scio/bigquery/BigQueryUtil.scala 16.66% 5 Missing ⚠️
...otify/scio/bigquery/syntax/SCollectionSyntax.scala 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5613      +/-   ##
==========================================
- Coverage   61.37%   61.33%   -0.04%     
==========================================
  Files         314      314              
  Lines       11243    11255      +12     
  Branches      788      802      +14     
==========================================
+ Hits         6900     6903       +3     
- Misses       4343     4352       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@clairemcginty clairemcginty marked this pull request as ready for review February 21, 2025 14:20
@clairemcginty clairemcginty merged commit 166a22a into main Feb 24, 2025
12 checks passed
@clairemcginty clairemcginty deleted the beam-upgrade branch February 24, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants