Steve Carlin created IMPALA-14019:
-------------------------------------
Summary: Calcite Planner: Support Union for partition key scan
Key: IMPALA-14019
URL: https://issues.apache.org/jira/browse/IMPALA-14019
Project: IMPALA
Issue Type: Sub-task
Reporter: Steve Carlin
Creating this Jira because of this comment in this code review:
https://gerrit.cloudera.org/#/c/22425/
We'll have to think about unions. It obviously can't do things like the count
star optimization, but some of the information is useful and can pass through.
(But that doesn't impact this review.)
For example: select count(*) from (select * from functional.alltypes union all
select * from functional.alltypestiny);
The regular planner doesn't change this into a partition key scan, but it
could: select distinct year from (select year from functional.alltypes union
all select year from functional.alltypessmall);
--
This message was sent by Atlassian Jira
(v8.20.10#820010)