You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2023/02/24 07:24:00 UTC

[jira] [Updated] (IMPALA-11937) PERF_AGG-Q10 fails by illegal GroupBy clause

     [ https://issues.apache.org/jira/browse/IMPALA-11937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Quanlong Huang updated IMPALA-11937:
------------------------------------
    Description: 
PERF_AGG-Q10 in testdata/workloads/targeted-perf/queries/aggregation.test fails to run:
{code:sql}
SELECT count(distinct 'test') agg1,
  count(distinct 1234) agg2,
  'grouping value' g
FROM
  lineitem
GROUP BY 2

ERROR: AnalysisException: GROUP BY expression must not contain aggregate functions: 2
{code}
The GROUP BY ordinal 2 refers to "count(distinct 1234)". We should use 3 instead.

  was:
PERF_AGG-Q10 in testdata/workloads/targeted-perf/queries/aggregation.test fails to run:
{code:sql}
SELECT count(distinct 'test') agg1,
  count(distinct 1234) agg2,
  'grouping value' g
FROM
  lineitem
GROUP BY 2

ERROR: AnalysisException: GROUP BY expression must not contain aggregate functions: 2
{code}
The GROUP BY constant '2' is treated as an ordinal so it's rewritten to "count(distinct 1234)".


> PERF_AGG-Q10 fails by illegal GroupBy clause
> --------------------------------------------
>
>                 Key: IMPALA-11937
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11937
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>            Reporter: Quanlong Huang
>            Assignee: Quanlong Huang
>            Priority: Major
>
> PERF_AGG-Q10 in testdata/workloads/targeted-perf/queries/aggregation.test fails to run:
> {code:sql}
> SELECT count(distinct 'test') agg1,
>   count(distinct 1234) agg2,
>   'grouping value' g
> FROM
>   lineitem
> GROUP BY 2
> ERROR: AnalysisException: GROUP BY expression must not contain aggregate functions: 2
> {code}
> The GROUP BY ordinal 2 refers to "count(distinct 1234)". We should use 3 instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org