Skip to content

chore: migrate java-bigquery to monorepo - #12059

Merged
suztomo merged 3414 commits into
mainfrom
migrate-java-bigquery-0309
Mar 9, 2026
Merged

suztomo merged 3414 commits into
mainfrom
migrate-java-bigquery-0309

Conversation

@suztomo

@suztomo suztomo commented Mar 9, 2026 •

Copy link
Copy Markdown
Member

suztomo@suztomo:~/migration-work/google-cloud-java$ INTEGRATION_TEST_ARGS='-pl !google-cloud-bigquery-jdbc' TEST_WITH_EXISTING=true SKIP_TESTS=true SQUASH_COMMITS=true SOURCE_REPO_URL=https://github.com/googleapis/java-bigquery ./monorepo-migration/migrate.sh

and hand-picked infrastructure changes from #11977.

suztomo@suztomo:~/migration-work/google-cloud-java-target/java-bigquery$ mvn -Dlint com.spotify.fmt:fmt-maven-plugin:format


suztomo@suztomo:~/migration-work/google-cloud-java-target/java-bigquery$ ../generation/apply_versions.sh ../versions.txt current
renovate-bot and others added 30 commits March 4, 2025 09:50
* Implement getArray in BigQueryResultImpl

* deps: update dependency com.google.apis:google-api-services-bigquery to v2-rev20250216-2.0.0 (#3688)

* build(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.14.0 (#3689)

* deps: update ossf/scorecard-action action to v2.4.1 (#3690)

* deps: update actions/upload-artifact action to v4.6.1 (#3691)

* Remove public from BigQueryResultSet class def

* Remove INTEGER_ARRAY_FIELD_LIST from IT test file

* Add ReadApi IT test

* Try old IT test values

* Convert Time objects to strings for comparison

* Fix Formatting

---------

Co-authored-by: Mend Renovate <bot@renovateapp.com>
)

* docs: update error handling comment to be more precise in samples

* style

* style

* update comment

* ignoredUnusedDeclaredDependencies

* revert wrong commit/PR push ignoredUnusedDeclaredDependencies
#3715)

* deps: exclude io.netty:netty-common from org.apache.arrow:arrow-memory-netty

* use dep version override instead of exclusion

* use dep version override instead of exclusion

* ignoredUnusedDeclaredDependencies
* fix: retry ExceptionHandler not retrying on IOException due to exception translation

* fix: retry ExceptionHandler not retrying on IOException due to exception translation

* fix: retry ExceptionHandler not retrying on IOException due to exception translation

* fix: retry ExceptionHandler not retrying on IOException due to exception translation

* fix: retry ExceptionHandler not retrying on IOException due to exception translation

* cast to HttpBigQueryRpc

* cast to HttpBigQueryRpc

* fix BigQueryRpc mocks in unit tests

* fix clirr check and format

* fix clirr

* fix clirr

* refactor HttpBigQueryRpc.write

* refactor HttpBigQueryRpc.write

* refactor ConnectionImpl HttpBigQueryRpc call

* refactor ConnectionImpl HttpBigQueryRpc call

* refactor create table

* refactor create table

* refactor BigQueryImpl

* refactor ConnectionImpl

* add missing unit test for BigQueryImpl deleteJob

* add tests to validate retry on BIGQUERY_EXCEPTION_HANDLER

* handle exception wrapping/unwrapping with new methods

* update runWithRetries to use BigQuery ruWithRetries to correctly handle thrown IOExceptions

* fix unit test

* add unit tests for retry in TableDataWriteChannel

* remove unnecessary null check

* fix unit test where null is returned in mocks causing errors
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
suztomo and others added 16 commits February 24, 2026 11:31
* chore: replace old partner teams with new ones (Wave 2)

b/478003109
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…perties (#4107)

* feat(jdbc): enforce strict JDBC URL parsing and validation

* feat(jdbc): sync DataSource properties with BigQueryConnection

* test: update tests for strict parsing

* chore: fix failing tests

* chore: throw original `BigQueryJdbcRuntimeException`

* chore: add url encoding to appendProperties to prevent injection vulnerabilites

* chore: refactor `parseAndRemovePartnerTokenProperty()`

* fix: use "ProjectId" instead of "Project_Id" in tests

* chore: add error message sanitization

* chore: address pr feedback

* fix: regex for partnerToken

* chore: use `Joiner` and copy of map when setting properties
…storage-bom to v3.22.0 (#4117)

Co-authored-by: Lawrence Qiu <lawrenceqiu@google.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
* chore: Disable testRoutineRemoteUDF test

* chore: Add check for null connection

* chore: Add check for null client
* chore: Fix short query tests

* chore: Use global otel instance for test

* chore: Refactor to account for null and invalid server mappings

* chore: Default to UNKNOWN enum

* chore: Fix nullable annotations

* chore: Update class comment

* chore: Move test into the correct package

* chore: Fix test issues
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@suztomo suztomo changed the title Migrate java bigquery 0309 Mar 9, 2026
@suztomo
suztomo force-pushed the migrate-java-bigquery-0309 branch 2 times, most recently from 14ba5c5 to be8edf0 Compare March 9, 2026 15:33
Comment thread .kokoro/common.sh Resolved
Comment thread versions.txt Resolved
@suztomo
suztomo force-pushed the migrate-java-bigquery-0309 branch from be8edf0 to b9de9dd Compare March 9, 2026 17:04
@suztomo
suztomo marked this pull request as ready for review March 9, 2026 17:04
@suztomo
suztomo requested a review from a team as a code owner March 9, 2026 17:05
@snippet-bot

snippet-bot Bot commented Mar 9, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 161 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
@suztomo

suztomo commented Mar 9, 2026

Copy link
Copy Markdown
Member Author

The GraalVM failure is from a flaky test:

Failures (1):
  JUnit Jupiter:ITBigQueryTest:testOpenTelemetryTracingDatasets()
    MethodSource [className = 'com.google.cloud.bigquery.it.ITBigQueryTest', methodName = 'testOpenTelemetryTracingDatasets', methodParameterTypes = '']
    => org.opentest4j.AssertionFailedError: expected:  but was: 
@suztomo
suztomo merged commit 8ce5f4d into main Mar 9, 2026
90 of 92 checks passed
@suztomo
suztomo deleted the migrate-java-bigquery-0309 branch March 9, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet