scarlin-cloudera commented on code in PR #4378:
URL: https://github.com/apache/hive/pull/4378#discussion_r1222062080


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/type/HiveFunctionHelper.java:
##########
@@ -448,6 +451,23 @@ public AggregateInfo 
getWindowAggregateFunctionInfo(boolean isDistinct, boolean
         new AggregateInfo(aggregateParameters, returnType, aggregateName, 
isDistinct) : null;
   }
 
+  public RexCall getUDTFFunction(String functionName, List<RexNode> operands)
+      throws SemanticException {
+    // Extract the argument types for the operands into a list
+    List<RelDataType> operandTypes = Lists.transform(operands, 
RexNode::getType);
+
+    FunctionInfo functionInfo = FunctionRegistry.getFunctionInfo(functionName);
+    GenericUDTF genericUDTF = functionInfo.getGenericUDTF();
+    Preconditions.checkNotNull(genericUDTF);

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to