Skip to content

Spark 3.4: Support recursive delegate unwrapping to find ExtendedParser in parser chains#16306

Merged
kevinjqliu merged 1 commit into
apache:mainfrom
kevinjqliu:spark-3.4-extended-parser-unwrap
May 13, 2026
Merged

Spark 3.4: Support recursive delegate unwrapping to find ExtendedParser in parser chains#16306
kevinjqliu merged 1 commit into
apache:mainfrom
kevinjqliu:spark-3.4-extended-parser-unwrap

Conversation

@kevinjqliu
Copy link
Copy Markdown
Contributor

Backport of #14483 (and follow-up #14497) to spark/v3.4.

Replaces the instanceof ExtendedParser cast in ExtendedParser.parseSortOrder with a reflective findParser(...) helper that walks the ParserInterface delegate chain. Fixes sort-order parsing when another Spark extension wraps Iceberg's parser.

3.5/4.0 already have this fix; 3.4 still uses the direct cast. The main file is now identical to v3.5's, and the test is a direct copy of v3.5's TestExtendedParser.

…er in parser chains

Backport of apache#14483 (and follow-up apache#14497) to spark/v3.4.
@github-actions github-actions Bot added the spark label May 13, 2026
@kevinjqliu
Copy link
Copy Markdown
Contributor Author

thanks for the review huaxin! since this is a clean backport and only make changes to spark 3.4, im comfortable with merging this in

@kevinjqliu kevinjqliu merged commit a676552 into apache:main May 13, 2026
29 of 31 checks passed
@kevinjqliu kevinjqliu deleted the spark-3.4-extended-parser-unwrap branch May 13, 2026 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants