mdayakar commented on code in PR #5182: URL: https://github.com/apache/hive/pull/5182#discussion_r1600532609
########## hplsql/src/main/java/org/apache/hive/hplsql/functions/FunctionMisc.java: ########## @@ -59,6 +64,43 @@ public void register(BuiltinFunctions f) { void activityCount(HplsqlParser.Expr_spec_funcContext ctx) { evalInt(Long.valueOf(exec.getRowCount())); } + + /** + * CAST function + */ + void cast(HplsqlParser.Expr_spec_funcContext ctx) { + if (ctx.expr().size() != 1) { + evalNull(); + return; + } Review Comment: As a part [HIVE-27492](https://issues.apache.org/jira/browse/HIVE-27492) fix, we fixed some issues like UDF using in select statement, that fix should be present so not reverting back entire [HIVE-27492](https://issues.apache.org/jira/browse/HIVE-27492) fix only the removed UDF cde is getting added and corrected for the functionality. -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org