commit | 462d91884fed4a139587a9e5ffa353b82e486c95 | [log] [tgz] |
---|---|---|
author | xqhe <hexianqing312@126.com> | Mon Aug 24 13:12:54 2020 +0800 |
committer | Impala Public Jenkins <impala-public-jenkins@cloudera.com> | Tue Sep 22 13:43:06 2020 +0000 |
tree | e1158ed92a83f0f59e502874823ebff485f84193 | |
parent | 179b14876d13353302d075be13f0ed1145041bfa [diff] |
IMPALA-10096: Use the original ordinal if the group by ordinal reference is a constant int The SelectStmt's groupingExprs_ uses the analyzed version and the ordinal reference will be substituted. It will throw an exception if the ordinal reference is still a numeric literal, because we will re-analyze after the expression has been rewritten. For example, here "count(1)" is rewritten to "count(*)" so we need to re-analyze the new query. select 13, id, count(1) from dimtbl group by 1, 2; The rewritten sql should be select 13, id, count(*) from dimtbl group by 1, id; If the original query uses "count(*)", it won't hit the bug since no rewriting happens. Testing: - Added new unit tests with ordinal in GROUP BY whereas SELECT has the INT literal. - Ran 'mvn test' for the FE Change-Id: I34f659d15073d69aa0a4685f56ad94557df86560 Reviewed-on: http://gerrit.cloudera.org:8080/16353 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Lightning-fast, distributed SQL queries for petabytes of data stored in Apache Hadoop clusters.
Impala is a modern, massively-distributed, massively-parallel, C++ query engine that lets you analyze, transform and combine data from a variety of data sources:
To learn more about Impala as a business user, or to try Impala live or in a VM, please visit the Impala homepage. Detailed documentation for administrators and users is available at Apache Impala documentation.
If you are interested in contributing to Impala as a developer, or learning more about Impala's internals and architecture, visit the Impala wiki.
Impala only supports Linux at the moment. Impala supports x86_64 and has experimental support for arm64 (as of Impala 4.0). Impala Requirements contains more detailed information on the minimum CPU requirements.
This distribution uses cryptographic software and may be subject to export controls. Please refer to EXPORT_CONTROL.md for more information.
See Impala's developer documentation to get started.
Detailed build notes has some detailed information on the project layout and build.