Skip to content

[SPARK-56609][SQL][TESTS] Remove redundant SparkFunSuite mixin from QueryTest/PlanTest subclasses#55529

Open
zhengruifeng wants to merge 1 commit intoapache:masterfrom
zhengruifeng:remove-redundant-sparkfunsuite-mixin
Open

[SPARK-56609][SQL][TESTS] Remove redundant SparkFunSuite mixin from QueryTest/PlanTest subclasses#55529
zhengruifeng wants to merge 1 commit intoapache:masterfrom
zhengruifeng:remove-redundant-sparkfunsuite-mixin

Conversation

@zhengruifeng
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Since QueryTest extends SparkFunSuite with QueryTestBase with PlanTest, and PlanTest extends SparkFunSuite with PlanTestBase, mixing SparkFunSuite in again alongside QueryTest or PlanTest in the extends list is a no-op.

Linearization:

QueryTest  ->  SparkFunSuite
           \>  QueryTestBase
           \>  PlanTest -> SparkFunSuite
                       \>  PlanTestBase

PlanTest   ->  SparkFunSuite
           \>  PlanTestBase

Cleanup across 7 test files in sql-catalyst, sql-core, and sql-hive:

  • extends SparkFunSuite with QueryTest -> extends QueryTest (3 files)
    • MapStatusEndToEndSuite
    • ExecutorSideSQLConfSuite
    • ParquetCommitterSuite (also has with LocalSparkContext, retained)
  • extends SparkFunSuite with PlanTest -> extends PlanTest (3 files)
    • ConstraintPropagationSuite
    • ExtractPredicatesWithinOutputSetSuite
    • FiltersSuite
  • extends SparkFunSuite with SQLHelper with AdaptiveSparkPlanHelper with PlanTest -> extends PlanTest with SQLHelper with AdaptiveSparkPlanHelper (1 file)
    • SparkSessionExtensionSuite

Also removed the now-unused SparkFunSuite imports.

Why are the changes needed?

Follow-up to SPARK-56591, which removed the analogous QueryTest with SharedSparkSession redundancy. Keeps the extends clauses minimal and removes imports that no longer serve any purpose.

Does this PR introduce any user-facing change?

No. Test-only change.

How was this patch tested?

dev/scalastyle passes. Existing tests in the affected suites exercise the unchanged test logic.

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

Generated-by: Claude Code (model: claude-opus-4-7)

…ueryTest/PlanTest subclasses

Since `QueryTest` extends `SparkFunSuite with QueryTestBase with PlanTest`, and `PlanTest` extends `SparkFunSuite with PlanTestBase`, mixing `SparkFunSuite` in again alongside `QueryTest` or `PlanTest` is redundant.

Cleanup across 7 test files:

- `extends SparkFunSuite with QueryTest` -> `extends QueryTest` (3 files)
- `extends SparkFunSuite with PlanTest` -> `extends PlanTest` (3 files)
- `extends SparkFunSuite with SQLHelper with AdaptiveSparkPlanHelper with PlanTest` -> `extends PlanTest with SQLHelper with AdaptiveSparkPlanHelper` (1 file)

Also removed the now-unused `SparkFunSuite` imports.

Co-authored-by: Isaac
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.

1 participant