From 30c5cc111a5a630438a361299d4f247be6829b72 Mon Sep 17 00:00:00 2001 From: taiyang-li <654010905@qq.com> Date: Wed, 20 Mar 2024 20:03:12 +0800 Subject: [PATCH] fix building velox --- .../io/glutenproject/backendsapi/velox/VeloxBackend.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 e50614bd2819..b47213103fcd 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 @@ -320,7 +320,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 }