[
https://issues.apache.org/jira/browse/CALCITE-7934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alessandro Solimando resolved CALCITE-7934.
-------------------------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed via
[{{9068b9e}}|https://github.com/apache/calcite/commit/9068b9e96e94777daffb633605a4e2847c0f0e63],
thanks [~etiennep] for your contribution!
> Aggregate uniqueness metadata uses incorrect column ordinals
> ------------------------------------------------------------
>
> Key: CALCITE-7934
> URL: https://issues.apache.org/jira/browse/CALCITE-7934
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Etienne Pelissier
> Assignee: Etienne Pelissier
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.43.0
>
>
> Broken quidem test:
> {code:java}
> !set hep-rules "
> +CoreRules.AGGREGATE_PROJECT_MERGE,
> +CoreRules.AGGREGATE_REMOVE"
> select distinct count(*) filter (where col1) as s
> from (values
> (true, 1),
> (true, 2)) as t(col1, col2)
> group by col2;
> +---+
> | S |
> +---+
> | 1 |
> +---+
> (1 row){code}
> The result produced by Calcite contains two rows instead of one.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)