Skip to content

fix(scan): reject ambiguous case-insensitive fields - #3070

Draft
manuzhang wants to merge 1 commit into
apache:mainfrom
manuzhang:fix-ambiguous-case-insensitive-fields
Draft

fix(scan): reject ambiguous case-insensitive fields#3070
manuzhang wants to merge 1 commit into
apache:mainfrom
manuzhang:fix-ambiguous-case-insensitive-fields

Conversation

@manuzhang

Copy link
Copy Markdown
Member

Which issue does this PR close?

  • None.

What changes are included in this PR?

Case-insensitive schema lookup now records lower-cased name collisions instead of silently selecting one field. Scan projection and expression binding propagate a data-invalid error when a requested name is ambiguous, while case-sensitive lookup is unchanged.

This change was extracted from #2773 so the Unknown-type work can be reviewed independently.

Are these changes tested?

  • Added a regression covering ambiguous case-insensitive scan projection and expression binding.
  • cargo test -p iceberg --lib test_case_insensitive_scan_rejects_ambiguous_column_name
  • cargo fmt --all -- --check
  • cargo clippy -p iceberg --all-targets --all-features -- -D warnings

AI Disclosure

This PR was prepared with assistance from Codex.

Co-authored-by: Codex <codex@openai.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.

1 participant