Skip to content

adapters: validate Avro map key type#6717

Open
xiasongh wants to merge 1 commit into
feldera:mainfrom
xiasongh:shuang/avro-map-key-schema
Open

adapters: validate Avro map key type#6717
xiasongh wants to merge 1 commit into
feldera:mainfrom
xiasongh:shuang/avro-map-key-schema

Conversation

@xiasongh

Copy link
Copy Markdown
Contributor

Code was trying to validate key but was validating value instead

@mihaibudiu
mihaibudiu enabled auto-merge July 24, 2026 03:20
@mihaibudiu
mihaibudiu added this pull request to the merge queue Jul 24, 2026

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Real bug fix. The previous code fetched column_type.value and then checked key_type.typ.is_string() — i.e. validating the value type against the "keys must be string" rule, effectively ignoring the actual key type. Switching to column_type.key restores the intended invariant. Test covers both the happy path and the non-string-key rejection.

APPROVE.

@gz
gz removed this pull request from the merge queue due to a manual request Jul 24, 2026
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