Skip to content

fix(spanner): support querying UUID against STRING columns by using untyped binding#4416

Merged
jinseopkim0 merged 1 commit intoGoogleCloudPlatform:mainfrom
sakthivelmanii:fix/b-502621401-uuid-mapping
Apr 20, 2026
Merged

fix(spanner): support querying UUID against STRING columns by using untyped binding#4416
jinseopkim0 merged 1 commit intoGoogleCloudPlatform:mainfrom
sakthivelmanii:fix/b-502621401-uuid-mapping

Conversation

@sakthivelmanii
Copy link
Copy Markdown
Contributor

@sakthivelmanii sakthivelmanii commented Apr 15, 2026

Binds java.util.UUID parameters as Untyped so that BE resolves the correct type which solves the issues with legacy schemas using STRING columns.

Fixes: #4120

@sakthivelmanii sakthivelmanii requested a review from a team as a code owner April 15, 2026 09:36
@sakthivelmanii sakthivelmanii force-pushed the fix/b-502621401-uuid-mapping branch 7 times, most recently from ff2aea1 to 21b766f Compare April 20, 2026 05:56
@sakthivelmanii sakthivelmanii changed the title fix(spanner): add option to disable native UUID mapping fix(spanner): support querying UUID against STRING columns by using untyped binding Apr 20, 2026
@sakthivelmanii sakthivelmanii force-pushed the fix/b-502621401-uuid-mapping branch 3 times, most recently from 1d1ce06 to 718405e Compare April 20, 2026 07:49
…ntyped binding

When querying with java.util.UUID parameters against STRING columns, Spanner fails with a type mismatch error if the parameter is bound as a native UUID.
@sakthivelmanii sakthivelmanii force-pushed the fix/b-502621401-uuid-mapping branch from 718405e to ae4bb78 Compare April 20, 2026 14:27
@jinseopkim0 jinseopkim0 merged commit a335a2b into GoogleCloudPlatform:main Apr 20, 2026
11 checks passed
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.

spring-cloud-gcp-data-spanner error when querying by UUID

3 participants