wangyum commented on code in PR #42129:
URL: https://github.com/apache/spark/pull/42129#discussion_r1359102724
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/expressions.scala:
##########
@@ -88,6 +88,10 @@ object ConstantFolding extends Rule[LogicalPlan] {
e
}
+ // Replace ScalarSubquery with null if its maxRows is 0
+ case s: ScalarSubquery if s.plan.maxRows.contains(0) =>
Review Comment:
@jchen5 Do we need to consider `mayHaveCountBug`?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]