Repository navigation
[VL] Spark 4.x: Enable Structured Streaming test suites #11911
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Backend
VL (Velox)
Bug description
20 Structured Streaming test suites are disabled (TODO) for both Spark 4.0 and 4.1. Additionally, 3 already-enabled streaming suites have 11 excludes related to streaming API changes.
Goal: Enable SS test suites to run with GlutenPlugin loaded, allowing fallback to vanilla Spark where needed.
Parent issue: #11550
Disabled suites (20)
19 suites use GlutenSQLTestsTrait, 1 uses GlutenTestsCommonTrait.
| # | Suite | Priority |
|---|---|---|
| 1 | GlutenFileStreamSinkV2Suite | Simple (1 failure) |
| 2 | GlutenMultiStatefulOperatorsSuite | Simple (2 failures / 10 tests) |
| 3 | GlutenStreamingQueryHashPartitionVerifySuite | Simple (1 test, needs SPARK_HOME) |
| 4 | GlutenEventTimeWatermarkSuite | Medium |
| 5 | GlutenFileStreamSourceSuite | Medium |
| 6 | GlutenStreamSuite | Medium (~66 tests) |
| 7 | GlutenStreamingAggregationSuite | Medium |
| 8 | GlutenStreamingAggregationDistributionSuite | Medium |
| 9 | GlutenStreamingDeduplicationSuite | Medium |
| 10 | GlutenStreamingDeduplicationDistributionSuite | Medium |
| 11 | GlutenStreamingInnerJoinSuite | Medium |
| 12 | GlutenStreamingOuterJoinSuite | Medium |
| 13 | GlutenStreamingSessionWindowDistributionSuite | Medium |
| 14 | GlutenStreamingStateStoreFormatCompatibilitySuite | Medium |
| 15 | GlutenFlatMapGroupsWithStateSuite | Medium |
| 16 | GlutenFlatMapGroupsWithStateDistributionSuite | Medium |
| 17 | GlutenFlatMapGroupsInPandasWithStateDistributionSuite | Complex (Python/Pandas) |
| 18 | GlutenRocksDBStateStoreFlatMapGroupsWithStateSuite | Follows #15 |
| 19 | GlutenRocksDBStateStoreStreamingAggregationSuite | Follows #7 |
| 20 | GlutenRocksDBStateStoreStreamingDeduplicationSuite | Follows #9 |
Excludes in already-enabled suites (from #11400)
- GlutenStreamRealTimeModeAllowlistSuite (3 excludes)
- GlutenStreamRealTimeModeE2ESuite (7 excludes)
- GlutenStreamRealTimeModeSuite (1 exclude)
- SPARK-53942 stateful shuffle partitions (2 excludes)
Root causes
- Plan assertion failures — GlutenPlugin replaces
ShuffleExchangeExecwithColumnarShuffleExchangeExec, etc. Tests asserting specific plan nodes fail. - Checkpoint resource loading — Golden files contain plan structures that don't match Gluten-transformed plans.
- Spark 4.1 streaming API changes — SPARK-53941 (AQE), SPARK-53233 (package refactor), etc.
Notes
GlutenStreamingQueryHashPartitionVerifySuiteusesGlutenTestsCommonTraitintentionally — switching toGlutenSQLTestsTraitcauses diamond inheritance conflict withStreamTest. The actual issue is thatgetWorkspaceFilePathrequiresSPARK_HOME.- Suggested order: start with [DISCUSS] Any ideas about unified memory management for different native engines? #1-3 (simple), then Enable Velox's calculation for TPC-H Q6 #4-16 per suite, RocksDB variants (Add a fake result for easier debug #18-20) follow parent suites.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
- StatusShow more project fieldsDone
Activity
malinjawi commentedon Apr 20, 2026
Hey @baibaichen! PR raised to enable the streaming suite.