andygrove commented on code in PR #958: URL: https://github.com/apache/datafusion-comet/pull/958#discussion_r1846868142
########## spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala: ########## @@ -1707,6 +1707,29 @@ class CometExecSuite extends CometTestBase { } } + test("SparkToColumnar override node name for row input") { + withSQLConf( + SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true", + CometConf.COMET_SHUFFLE_MODE.key -> "jvm") { + val df = spark + .range(1000) + .selectExpr("id as key", "id % 8 as value") + .toDF("key", "value") + .groupBy("key") + .count() + df.collect() + + val planAfter = df.queryExecution.executedPlan + assert(planAfter.toString.startsWith("AdaptiveSparkPlan isFinalPlan=true")) + val adaptivePlan = planAfter.asInstanceOf[AdaptiveSparkPlanExec].executedPlan + val nodeNames = adaptivePlan.collect { case c: CometSparkToColumnarExec => + c.nodeName + } + assert(nodeNames.length == 1) + assert(nodeNames.head == "CometSparkRowToColumnar") Review Comment: Hi @JensonChoi. I will look at this today. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org