[
https://issues.apache.org/jira/browse/HIVE-26936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HIVE-26936:
----------------------------------
Labels: pull-request-available (was: )
> A query whose predicate compared 0 with -0 where at least one of these was a
> floating-point value returned incorrect results.
> ------------------------------------------------------------------------------------------------------------------------------
>
> 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: 10m
> 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)