Aggarwal-Raghav commented on code in PR #6907:
URL: https://github.com/apache/hive/pull/6907#discussion_r4351565805


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/type/HiveFunctionHelper.java:
##########
@@ -140,9 +143,9 @@ public RelDataType getReturnType(FunctionInfo fi, 
List<RexNode> inputs)
     }
     // 2) Initialize and obtain return type
     GenericUDF genericUDF = fi.getGenericUDF();
-    ObjectInspector oi = genericUDF != null ?
-        genericUDF.initializeAndFoldConstants(inputsOIs) :
-        fi.getGenericUDTF().initialize(inputsOIs);

Review Comment:
   the older `initialize(inputsOIs)` 
   was calling deprecated method 
https://github.com/apache/hive/blob/bfe74f9b3f92188095d50cf103b86431f8aaa821/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDTF.java#L73-L76



-- 
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