Skip to content

fix: gate element_at input types#4702

Closed
manuzhang wants to merge 0 commit into
apache:mainfrom
manuzhang:codex/issue-4505-element-at-map
Closed

fix: gate element_at input types#4702
manuzhang wants to merge 0 commit into
apache:mainfrom
manuzhang:codex/issue-4505-element-at-map

Conversation

@manuzhang

@manuzhang manuzhang commented Jun 22, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Part of #4505.

This PR does not address #4680 because that follow-up is assigned separately.

Rationale for this change

element_at supports array and map inputs in Spark, but Comet only implements the array path. Reporting the map-input fallback through getSupportLevel keeps unsupported map inputs documented and handled consistently.

What changes are included in this PR?

  • Moves the MapType input fallback for ElementAt into getSupportLevel.
  • Reuses the unsupported map-input reason in generated support documentation.
  • Adds SQL fallback coverage for element_at on map inputs.

How are these changes tested?

  • Adds SQL tests

Co-authored-by: @codex

@manuzhang manuzhang force-pushed the codex/issue-4505-element-at-map branch from e9c6bc3 to fa79f2b Compare June 22, 2026 14:01
@andygrove

Copy link
Copy Markdown
Member

Thanks for working on this @manuzhang. I think this PR may conflict with #4697?

@manuzhang manuzhang closed this Jun 23, 2026
@manuzhang manuzhang force-pushed the codex/issue-4505-element-at-map branch from fa79f2b to de3beef Compare June 23, 2026 15:38
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.

2 participants