Skip to content

Commit

Permalink
fix: Avoid resursive call to canonicalizePlans
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Jun 17, 2024
1 parent c87fabe commit 3b3de17
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ abstract class CometNativeExec extends CometExec {
*/
protected def canonicalizePlans(): CometNativeExec = {
def transform(arg: Any): AnyRef = arg match {
case sparkPlan: SparkPlan => sparkPlan.canonicalized
case sparkPlan: SparkPlan if !sparkPlan.isInstanceOf[CometNativeExec] =>
sparkPlan.canonicalized
case other: AnyRef => other
case null => null
}
Expand Down

0 comments on commit 3b3de17

Please sign in to comment.