Skip to content

fix(table): use iceberg.UUID in identityPartitionValue - #2788

Open
hcrosse wants to merge 1 commit into
apache:mainfrom
hcrosse:fix-arrow-scanner-uuid
Open

hcrosse wants to merge 1 commit into
apache:mainfrom
hcrosse:fix-arrow-scanner-uuid

Conversation

@hcrosse

@hcrosse hcrosse commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

#2487 imported github.com/google/uuid and matched case uuid.UUID: in identityPartitionValue right after #2766 switched iceberg.UUID to the Go 1.27 standard library uuid.UUID. On Go 1.27, github.com/google/uuid.UUID no longer satisfies iceberg.LiteralType, breaking builds on main.

Changes

  • Match case iceberg.UUID: in identityPartitionValue and drop the github.com/google/uuid import from table/arrow_scanner.go.
  • Add TestIdentityPartitionValueUUID in table/identity_partition_projection_internal_test.go.

Switch identityPartitionValue in table/arrow_scanner.go from
github.com/google/uuid.UUID to iceberg.UUID. After apache#2766 changed
iceberg.UUID to the Go 1.27 standard library uuid.UUID, apache#2487 broke
Go 1.27 builds because google/uuid.UUID no longer satisfies
iceberg.LiteralType.

Signed-off-by: Harrison Crosse <[email protected]>
@hcrosse
hcrosse marked this pull request as ready for review December 2, 2026 03:06
@hcrosse
hcrosse requested a review from zeroshade as a code owner December 2, 2026 03:06
Copilot AI balanced review requested due to automatic review settings December 2, 2026 03:06

Copilot AI 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.

🟢 Approval recommended

There are no active review issues for the UUID identity partition type fix.

No open issues 🎉

What changed in this PR

Fixes the UUID type mismatch in identity partition handling after the Go 1.27 UUID migration.

Changes:

  • Uses iceberg.UUID instead of google/uuid.UUID and removes the unused import.
  • Adds a regression test for UUID identity partition values.
File Description
table/​identity_partition_projection_internal_test.go Tests UUID identity partition conversion.
table/​arrow_scanner.go Matches the repository’s UUID type.

Review effort: Balanced

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

Development

Successfully merging this pull request may close these issues.

3 participants