[ 
https://issues.apache.org/jira/browse/HIVE-26936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dayakar M updated HIVE-26936:
-----------------------------
    Summary: Floating point zero and signed zero comparison as a part of join 
predicate is considered as not equal.  (was:  A query whose predicate compared 
0 with -0 where at least one of these was a floating-point value returned 
incorrect results.)

> Floating point zero and signed zero comparison as a part of join predicate is 
> considered as not equal.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-26936
>                 URL: https://issues.apache.org/jira/browse/HIVE-26936
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Dayakar M
>            Assignee: Dayakar M
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Steps to reproduce:
> {quote}CREATE TABLE t0(c0 INT);
> CREATE TABLE t1(c0 DOUBLE);
> INSERT INTO t0 VALUES(0);
> INSERT INTO t1 VALUES('-0');
> SELECT * FROM t0, t1 WHERE t0.c0 = t1.c0;
> {quote}
> *Expected Result:* 0.0 -0.0
> *Actual:* No Rows selected
> That the predicate should evaluate to TRUE can be verified with the following 
> statement:
> {quote}SELECT t0.c0 = t1.c0 FROM t0, t1; 
> -------
> _c0
> -------
> true
> -------
> {quote}
> Similar issue fixed earlier as a part of HIVE-11174  for where clause 
> condition, now join condition is having issue.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to