allisonwang-db commented on a change in pull request #32606: URL: https://github.com/apache/spark/pull/32606#discussion_r637105987
########## File path: sql/core/src/test/scala/org/apache/spark/sql/execution/RemoveRedundantProjectsSuite.scala ########## @@ -215,6 +217,27 @@ abstract class RemoveRedundantProjectsSuiteBase |LIMIT 10 |""".stripMargin assertProjectExec(query, 0, 3) + + } + Seq("true", "false").foreach { codegenEnabled => + test("SPARK-35287: project generating unsafe row " + + s"should not be removed (codegen=$codegenEnabled)") { + withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1", Review comment: If the pattern SortExec -> BatchScamExec can trigger this issue, would an orderBy instead of a join be sufficient? -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org