diff --git a/backends-velox/src/main/scala/io/glutenproject/backendsapi/velox/VeloxBackend.scala b/backends-velox/src/main/scala/io/glutenproject/backendsapi/velox/VeloxBackend.scala index acbf071103f2..e27b8084e0bd 100644 --- a/backends-velox/src/main/scala/io/glutenproject/backendsapi/velox/VeloxBackend.scala +++ b/backends-velox/src/main/scala/io/glutenproject/backendsapi/velox/VeloxBackend.scala @@ -337,7 +337,8 @@ object BackendSettings extends BackendSettingsApi { windowExpression.windowFunction match { case _: RowNumber | _: Rank | _: CumeDist | _: DenseRank | _: PercentRank | _: NthValue | _: NTile | _: Lag | _: Lead => - case aggrExpr: AggregateExpression if !aggrExpr.isInstanceOf[ApproximatePercentile] => + case aggrExpr: AggregateExpression + if !aggrExpr.aggregateFunction.isInstanceOf[ApproximatePercentile] => case _ => allSupported = false }