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

Mihai Budiu resolved CALCITE-7944.
----------------------------------
    Fix Version/s: 1.43.0
       Resolution: Fixed

Fixed in 
https://github.com/apache/calcite/commit/3bf00dd019f15461c2659a5a80eb05cf51891a8a
Thank you for the fix [~etiennep]

> ProjectAggregateMergeRule uses incorrect column ordinals for SUM0
> -----------------------------------------------------------------
>
>                 Key: CALCITE-7944
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7944
>             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}
> select deptno, coalesce(sum(cast(mgr as int)), 0) as m
> from emp
> group by deptno
> order by deptno;
> +--------+-------+
> | DEPTNO | M     |
> +--------+-------+
> |     10 | 15621 |
> |     20 | 38661 |
> |     30 | 46329 |
> +--------+-------+
> (3 rows)
> {code}
> Failure: nullability type mismatch, INTEGER NOT NULL expected but INTEGER 
> supplied.
> The fix is a one line change in ProjectAggregateMergeRule.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to