Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
JDBC queries that have joins against self table gives wrong results.
e.g.
SELECT username AS `username`, SUM(double1) AS `sum_double1` FROM jdbc_table_with_nulls `tbl1` JOIN ( SELECT username AS `username`, SUM(double1) AS `sum_double2` FROM jdbc_table_with_nulls GROUP BY `username` ORDER BY `sum_double2` DESC LIMIT 10 ) `tbl2` ON (`tbl1`.`username` = `tbl2`.`username`) GROUP BY `tbl1`.`username`;
Similar to HIVE-19762.