Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zml1206 committed Nov 21, 2024
1 parent 78f2c93 commit 0ddc7b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,21 @@
*/
package org.apache.gluten.execution

import org.apache.gluten.backendsapi.BackendsApiManager
import org.apache.gluten.metrics.MetricsUpdater

import org.apache.spark.sql.catalyst.expressions.Expression
import org.apache.spark.sql.execution.SparkPlan

case class FilterExecTransformer(condition: Expression, child: SparkPlan)
extends FilterExecTransformerBase(condition, child) {

override def metricsUpdater(): MetricsUpdater = if (getRemainingCondition == null) {
MetricsUpdater.None
} else {
BackendsApiManager.getMetricsApiInstance.genFilterTransformerMetricsUpdater(metrics)
}

override protected def withNewChildInternal(newChild: SparkPlan): FilterExecTransformer =
copy(child = newChild)
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ abstract class FilterExecTransformerBase(val cond: Expression, val input: SparkP
case _ => false
}

override def metricsUpdater(): MetricsUpdater = if (getRemainingCondition == null) {
MetricsUpdater.None
} else {
override def metricsUpdater(): MetricsUpdater =
BackendsApiManager.getMetricsApiInstance.genFilterTransformerMetricsUpdater(metrics)
}

def getRelNode(
context: SubstraitContext,
Expand Down

0 comments on commit 0ddc7b3

Please sign in to comment.