Skip to content

Commit 138ff91

Browse files
committed
fix compile error with hive-0.12
1 parent d5c980f commit 138ff91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveUdfs.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ private[spark] object ResolveWindowUdaf extends Rule[LogicalPlan] {
216216
val windowFunctionInfo: WindowFunctionInfo =
217217
Option(FunctionRegistry.getWindowFunctionInfo(name.toLowerCase)).getOrElse(
218218
sys.error(s"Couldn't find udaf function $name"))
219-
HiveGenericUdaf(new HiveFunctionWrapper(windowFunctionInfo.getFunctionClass.getName),
219+
HiveGenericUdaf(
220+
new HiveFunctionWrapper(windowFunctionInfo.getfInfo().getFunctionClass.getName),
220221
windowFunctionInfo, children)
221222
}
222223

0 commit comments

Comments
 (0)