imback82 commented on a change in pull request #32032:
URL: https://github.com/apache/spark/pull/32032#discussion_r608364601
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/Command.scala
##########
@@ -37,3 +38,35 @@ trait Command extends LogicalPlan {
trait LeafCommand extends Command with LeafLike[LogicalPlan]
trait UnaryCommand extends Command with UnaryLike[LogicalPlan]
trait BinaryCommand extends Command with BinaryLike[LogicalPlan]
+
+/**
+ * A logical node that represents a command whose children are only analyzed,
but not optimized.
+ */
+trait AnalysisOnlyCommand extends Command {
+ private var _isAnalyzed: Boolean = false
+
+ def childrenToAnalyze: Seq[LogicalPlan]
+
+ override def children: Seq[LogicalPlan] = if (_isAnalyzed) Nil else
childrenToAnalyze
Review comment:
Ah sorry, I misunderstood the original comment. Thanks for the
clarification!
--
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]