Spark: Test joins and MERGE when generated functions move to nested classes

Open
#18,953 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Visorgood is already working on this.

Since Nov 17, 2026.

  • #19017 by @Visorgood — closed without merging

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
java, spark
Domain
testing

Research direction

Read #18294 and the linked Spark PR apache/spark#59653 to see which codegen helpers move into nested classes and how they are qualified. Then locate Iceberg's Spark join and MERGE test suites covering full-outer SortMergeJoinExec, build-side-outer ShuffledHashJoinExec, and MergeRowsExec, and grow the generated class past Spark's threshold. Done means Iceberg-backed tests exercise those paths and fail if codegen falls back silently.

Written by the indexing model from the issue text.

Description

improvement
Feature Request / Improvement

Add Iceberg-backed coverage for SPARK-60403. Ordinary joins and MERGE tests do not force the generated class to become large enough for helper functions to move into nested classes. #18294 explicitly records this exact upstream regression as untested.

The affected helpers belong to full-outer SortMergeJoinExec, full/build-side-outer ShuffledHashJoinExec, and MergeRowsExec. Their calls must use the qualified names returned by the code-generation context. Otherwise compilation can fail and Spark can silently fall back to execution without whole-stage code generation.

Query engine

Spark

Dominant language
Java
Stars
9.5k
Forks
3.7k
Avg merge
2d 2h
Merged PRs (30d)
170

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/iceberg

All issues in apache/iceberg

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.