Skip to content

Commit 445d205

Browse files
committed
[Fix] Fix MiscOperatorSuite to support OneRowRelationExec plan Spark 4.1
see apache/spark#50849
1 parent c30f5ae commit 445d205

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

backends-velox/src/test/scala/org/apache/gluten/execution/MiscOperatorSuite.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,11 @@ class MiscOperatorSuite extends VeloxWholeStageTransformerSuite with AdaptiveSpa
753753
val df = sql("SELECT 1")
754754
checkAnswer(df, Row(1))
755755
val plan = df.queryExecution.executedPlan
756-
assert(plan.find(_.isInstanceOf[RDDScanExec]).isDefined)
756+
if (isSparkVersionGE("4.1")) {
757+
assert(plan.find(_.getClass.getSimpleName == "OneRowRelationExec").isDefined)
758+
} else {
759+
assert(plan.find(_.isInstanceOf[RDDScanExec]).isDefined)
760+
}
757761
assert(plan.find(_.isInstanceOf[ProjectExecTransformer]).isDefined)
758762
assert(plan.find(_.isInstanceOf[RowToVeloxColumnarExec]).isDefined)
759763
}

0 commit comments

Comments
 (0)