Skip to content

refactor: centralize data type support predicates#5025

Open
peterxcli wants to merge 3 commits into
apache:mainfrom
peterxcli:refactor/centralize-data-type-support
Open

refactor: centralize data type support predicates#5025
peterxcli wants to merge 3 commits into
apache:mainfrom
peterxcli:refactor/centralize-data-type-support

Conversation

@peterxcli

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #5021.

Depends on #4976.

Rationale for this change

Data-type support checks are duplicated across sinks, local scans, and shuffle paths, making new type support error-prone.

What changes are included in this PR?

Centralize recursive capability checks in QueryPlanSerde.supportedDataType and reuse them across existing call sites while preserving their boundary-specific behavior.

How are these changes tested?

Added recursive capability coverage and ran focused Spark 4.1 and Spark 3.5 tests, interval SQL tests, Spotless, and Scalastyle.

@peterxcli peterxcli changed the title feat: support interval codegen dispatch refactor: centralize data type support predicates 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.

Centralize data-type support predicates so new types don't have to be added in multiple places

1 participant