maropu commented on a change in pull request #30018:
URL: https://github.com/apache/spark/pull/30018#discussion_r546371103
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -3858,3 +3808,55 @@ object UpdateOuterReferences extends Rule[LogicalPlan] {
}
}
}
+
+/**
+ * Pulls out nondeterministic expressions from LogicalPlan which is not
Project or Filter,
+ * put them into an inner Project and finally project them away at the outer
Project.
+ */
+object PullOutNondeterministic extends Rule[LogicalPlan] {
Review comment:
Could you make a dedicated file for this rule?
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]