Skip to content

[SPARK-56591][SQL][TESTS][FOLLOWUP] Remove redundant QueryTest mixin from SharedSparkSession subclasses#55557

Closed
zhengruifeng wants to merge 2 commits intoapache:masterfrom
zhengruifeng:cleanup-redundant-querytest-mixin
Closed

[SPARK-56591][SQL][TESTS][FOLLOWUP] Remove redundant QueryTest mixin from SharedSparkSession subclasses#55557
zhengruifeng wants to merge 2 commits intoapache:masterfrom
zhengruifeng:cleanup-redundant-querytest-mixin

Conversation

@zhengruifeng
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Follow-up to SPARK-56591. Seven additional sql-core test suites still mix in QueryTest alongside SharedSparkSession (which already extends QueryTest), so the explicit mixin is redundant. This removes the redundant with QueryTest and the now-unused QueryTest imports:

  • SchemaPruningSuite
  • ParquetRebaseDatetimeSuite
  • ParquetTypeWideningSuite
  • ParquetFileFormatSuite
  • FileSourceAggregatePushDownSuite
  • QueryCompilationErrorsSuite
  • QueryExecutionErrorsSuite

Why are the changes needed?

SPARK-56591 missed these cases. Removes redundant trait mixins so the extends lists faithfully describe the class hierarchy.

Does this PR introduce any user-facing change?

No. Test-only class-declaration cleanup.

How was this patch tested?

Existing tests. (Local sql/Test/compile was attempted but blocked by an unrelated dependency-resolution failure for io.netty:netty-tcnative-boringssl-static; GitHub Actions CI on this PR will compile the affected modules.)

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

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

…from SharedSparkSession subclasses

### What changes were proposed in this pull request?

Follow-up to SPARK-56591. Seven additional `sql-core` test suites still mix in
`QueryTest` alongside `SharedSparkSession` (which already extends `QueryTest`),
so the explicit mixin is redundant. This removes the redundant `with QueryTest`
and the now-unused `QueryTest` imports:

- SchemaPruningSuite
- ParquetRebaseDatetimeSuite
- ParquetTypeWideningSuite
- ParquetFileFormatSuite
- FileSourceAggregatePushDownSuite
- QueryCompilationErrorsSuite
- QueryExecutionErrorsSuite

### Why are the changes needed?

SPARK-56591 missed these cases. Removes redundant trait mixins so the `extends`
lists faithfully describe the class hierarchy.

### Does this PR introduce _any_ user-facing change?

No. Test-only class-declaration cleanup.

### How was this patch tested?

Existing tests. (Local `sql/Test/compile` was attempted but blocked by an
unrelated dependency-resolution failure for `io.netty:netty-tcnative-boringssl-static`;
GitHub Actions CI on this PR will compile the affected modules.)

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

Generated-by: Claude Code (model: claude-opus-4-7)
`QueryErrorsBase` is a pure trait with no class ancestor, so making it the
first member of `extends` left the superclass as `Object`, which conflicts
with `SharedSparkSession`'s required `SparkFunSuite` superclass. Reorder
to put `SharedSparkSession` first.
@zhengruifeng zhengruifeng marked this pull request as ready for review April 27, 2026 10:17
@zhengruifeng
Copy link
Copy Markdown
Contributor Author

merged to master

@zhengruifeng zhengruifeng deleted the cleanup-redundant-querytest-mixin branch April 27, 2026 13:55
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.

2 participants