[ 
https://issues.apache.org/jira/browse/CALCITE-7934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18143775#comment-18143775
 ] 

Alessandro Solimando commented on CALCITE-7934:
-----------------------------------------------

Hi [~etiennep], thanks for reporting!

Is the problem reproducible beyond {_}VALUES{_}? Do you have an idea already of 
a possible root cause? Is it again an indexing problem like in previous related 
issues? (If so, it would be great to "link" them as "relates to" this one).

I think it's fine to open a PR already, but if you want to agree on a direction 
before starting implementing, I think answering the questions above is a good 
starting point.

I have limited connectivity this week, but I can look into the details next 
week, if needed.

> 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
>            Priority: Major
>
> 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)

Reply via email to