wecharyu commented on code in PR #12703:
URL: https://github.com/apache/gluten/pull/12703#discussion_r3854642386


##########
gluten-substrait/src/main/scala/org/apache/spark/sql/execution/GlutenExplainUtils.scala:
##########
@@ -45,6 +45,36 @@ import scala.collection.mutable.{ArrayBuffer, BitSet}
 object GlutenExplainUtils extends AdaptiveSparkPlanHelper {
   type FallbackInfo = (Int, Map[String, String])
 
+  /**
+   * Returns whether a plan should be ignored when collecting fallback 
statistics.
+   *
+   * Such plans are structural wrappers rather than execution operators: they 
are neither fallback
+   * Spark operators nor native Gluten operators.
+   */
+  def isFallbackInsensitivePlan(plan: SparkPlan): Boolean = plan match {

Review Comment:
   This function aims to filter out the nodes that should not be considered as 
native operator or fallback operator, it contains structural nodes and some 
wrappers, so we named it `isFallbackInsensitivePlan`.
   
   Updated the comments of misleading  structural.



-- 
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]

Reply via email to