Skip to content

[AURON #2392] Support Spark 4.2#2404

Open
XorSum wants to merge 2 commits into
apache:masterfrom
XorSum:support-spark-4.2.0
Open

[AURON #2392] Support Spark 4.2#2404
XorSum wants to merge 2 commits into
apache:masterfrom
XorSum:support-spark-4.2.0

Conversation

@XorSum

@XorSum XorSum commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2392

Rationale for this change

https://spark.apache.org/releases/spark-release-4-2-0.html

What changes are included in this PR?

Are there any user-facing changes?

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

  • Yes
  • No

If yes, include: Generated-by: Kimi K3

ASF guidance: https://www.apache.org/legal/generative-tooling.html

Comment on lines 26 to 35
/**
* Base test class under org.apache.spark.sql to use package-private [[SQLTestUtils]]; extends
* [[QueryTest]] for comparisons and checks.
* Base test class under org.apache.spark.sql to extends [[QueryTest]] for comparisons and checks.
* Before spark-4.1 also extends package-private [[org.apache.spark.sql.test.SQLTestUtils]].
*/
@sparkverExcludeParents("4.2", "org.apache.spark.sql.test.SQLTestUtils")
abstract class AuronQueryTest
extends QueryTest
with SQLTestUtils
with BeforeAndAfterEach
with org.apache.spark.sql.test.SQLTestUtils
with AdaptiveSparkPlanHelper {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SQLTestUtils is deprecated since 4.2.0, and we should use QueryTest directly instead.

Comment on lines +22 to +23
// org.apache.spark.internal.config.ConfigEntryWithDefaultFunction
private class ConfigEntryWithDefaultFunction[T](

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the Java file SparkAuronConfiguration.java, a Scala case class ConfigEntryWithDefaultFunction is invoked. However, SPARK-55928 added a new field to ConfigEntryWithDefaultFunction, which caused a compilation failure. Therefore, I copied the code of ConfigEntryWithDefaultFunction to make Auron compile successfully.

}
}

def verExcludeParents(c: whitebox.Context)(annottees: c.Expr[Any]*): c.Expr[Any] = {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This macro verExcludeParents was AI-generated by Kimi K3. All other code was written by human.

Comment thread .github/workflows/build-amd64-releases.yml Outdated
Co-authored-by: cxzl25 <3898450+cxzl25@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Spark 4.2

2 participants