Skip to content

fix(bigquerystorage): normalize names with Locale.ROOT - #15460

Draft
pratt4 wants to merge 1 commit into
googleapis:mainfrom
pratt4:oss/google-cloud-java-15056-root-locale
Draft

pratt4 wants to merge 1 commit into
googleapis:mainfrom
pratt4:oss/google-cloud-java-15056-root-locale

Conversation

@pratt4

@pratt4 pratt4 commented Dec 6, 2026

Copy link
Copy Markdown

Fixes #15056.

Normalize BigQuery Storage Write API schema names and JSON keys with Locale.ROOT. The JVM default locale can otherwise make a schema containing I disagree with the descriptor and silently drop fields when unknown fields are ignored.

The reviewed patch passed 60 locale cases and 132 focused tests. The broader module run had two failures, including a health-check failure reproduced on the unmodified base. Cloud integration was outside the local run.

AI assistance was used to prepare and verify this change.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the field name normalization and comparison logic to be locale-independent by explicitly using Locale.ROOT when calling toLowerCase(). This prevents potential issues in environments with locales that have non-standard casing rules, such as Turkish or Azerbaijani. A new test class, LocaleIndependentFieldNamesTest, has also been introduced to verify correct behavior across different locales and schemas. There are no review comments to address.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant