Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
Impala 2.0
-
None
Description
The query below produces only 1 row in both Postgresql and Mysql
Query: select int_col from alltypestiny union all select int_col from alltypestiny limit 1 +---------+ | int_col | +---------+ | 0 | | 1 | | 0 | | 1 | | 0 | | 0 | | 1 | | 0 | | 1 | +---------+ Fetched 9 row(s) in 0.46s
Impala applies the LIMIT to the bottom query in the UNION instead of the overall query result.
Attachments
Issue Links
- is duplicated by
-
IMPALA-4741 ORDER BY behavior with UNION is incorrect
- Open