[ https://issues.apache.org/jira/browse/HIVE-24998?focusedWorklogId=590483&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-590483 ]
ASF GitHub Bot logged work on HIVE-24998: ----------------------------------------- Author: ASF GitHub Bot Created on: 28/Apr/21 15:49 Start Date: 28/Apr/21 15:49 Worklog Time Spent: 10m Work Description: jcamachor commented on a change in pull request #2163: URL: https://github.com/apache/hive/pull/2163#discussion_r622313451 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/translator/ASTConverter.java ########## @@ -788,6 +789,9 @@ public ASTNode visitCall(RexCall call) { } } break; + case IS_DISTINCT_FROM: + // convert IS DISTINCT FROM to NOT (IS NOT DISTINCT FROM) + return visitCall((RexCall) RexUtil.not(rexBuilder.makeCall(SqlStdOperatorTable.IS_NOT_DISTINCT_FROM, call.getOperands()))); Review comment: Do you still need to add `is_not_distinct_from` in FunctionRegistry.java after this change? The reason why I am asking is that adding it to FunctionRegistry will make it user facing, hopefully we can avoid that. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 590483) Time Spent: 1h 50m (was: 1h 40m) > IS [NOT] DISTINCT FROM failing with SemanticException > ----------------------------------------------------- > > Key: HIVE-24998 > URL: https://issues.apache.org/jira/browse/HIVE-24998 > Project: Hive > Issue Type: Bug > Components: CBO > Reporter: Manthan B Y > Assignee: Soumyakanti Das > Priority: Major > Labels: pull-request-available > Time Spent: 1h 50m > Remaining Estimate: 0h > > Hive: INSERT statements failing with UDFArgumentException and > SemanticException > Problem Statement: > {code:java} > CREATE TABLE t2(c0 boolean , c1 FLOAT ); > INSERT INTO t2(c0) VALUES (NOT (0.379 IS NOT DISTINCT FROM 641)); > -- Insert failing with: Error: Error while compiling statement: FAILED: > UDFArgumentException UDF tables only one argument (state=42000,code=40000) > INSERT INTO t2(c0,c1) VALUES (NOT (0.379 IS NOT DISTINCT FROM 641), 0.2); > -- Insert failing with: SemanticException 0:0 Expected 2 columns for > insclause-0/database52@t2; select produces 1 columns. Error encountered near > token '0.2' (state=42000,code=40000) {code} > -- This message was sent by Atlassian Jira (v8.3.4#803005)