Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Jun 17, 2024
1 parent 3b3de17 commit 356c79a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ abstract class CometNativeExec extends CometExec {
protected def canonicalizePlans(): CometNativeExec = {
def transform(arg: Any): AnyRef = arg match {
case sparkPlan: SparkPlan if !sparkPlan.isInstanceOf[CometNativeExec] =>
// Different to Spark, Comet native query node might have a Spark plan as Product element.
// We need to canonicalize the Spark plan. But it is not possibly to be another Comet
// native query node.
sparkPlan.canonicalized
case other: AnyRef => other
case null => null
Expand Down

0 comments on commit 356c79a

Please sign in to comment.