Skip to content

feat(bigquery): Support collation feature#30919

Merged
aandreassa merged 2 commits intomainfrom
bq-collation
Sep 16, 2025
Merged

feat(bigquery): Support collation feature#30919
aandreassa merged 2 commits intomainfrom
bq-collation

Conversation

@aandreassa
Copy link
Copy Markdown
Contributor

Features:

  • Added collation to Schema & Schema::Field
  • Added default_collation to Table
  • Added default_collation to Dataset
  • Added unit tests & integration tests

Java reference: https://github.com/googleapis/java-bigquery/pull/2490/files
NodeJS reference: https://github.com/googleapis/nodejs-bigquery/pull/1188/files

b/266066248

@aandreassa aandreassa marked this pull request as ready for review August 28, 2025 19:36
@aandreassa aandreassa requested a review from a team August 28, 2025 19:36
@aandreassa aandreassa marked this pull request as draft August 28, 2025 19:37
@aandreassa aandreassa added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 8, 2025
@aandreassa aandreassa marked this pull request as ready for review September 8, 2025 20:50
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 8, 2025
@viacheslav-rostovtsev
Copy link
Copy Markdown
Member

please add an integration test for field collation. Can be similar to "updates the table schema with default values"

Copy link
Copy Markdown
Member

@viacheslav-rostovtsev viacheslav-rostovtsev left a comment

Choose a reason for hiding this comment

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

~

@aandreassa
Copy link
Copy Markdown
Contributor Author

Thank you, updated it! I am creating a table since a field's collation is immutable after it.

Google::Cloud::Bigquery::Table::bigquery#test_0048_updates the table schema with collation:
  Google::Cloud::InvalidArgumentError: INVALID_ARGUMENT: Provided Schema does not match Table <table-name-redacted>.table_collation_test.
   Invalid schema update. Updating field collation is not supported. Field name has changed collation from "" to "und:ci"

@aandreassa aandreassa merged commit 39587c2 into main Sep 16, 2025
14 checks passed
@aandreassa aandreassa deleted the bq-collation branch September 16, 2025 20:13
shubhangi-google pushed a commit to shubhangi-google/google-cloud-ruby that referenced this pull request Jan 27, 2026
---------

Co-authored-by: Yoshi Automation Bot <yoshi-automation@google.com>
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.

4 participants