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

Yu Xu resolved CALCITE-7485.
----------------------------
    Fix Version/s: 1.42.0
       Resolution: Fixed

Fixed in 
[fcb0746|https://github.com/apache/calcite/commit/fcb07463d05ac072f86634fdb53c70b113bb1b75]

Thank you for the review [~mbudiu] 

> FIRST_VALUE/LAST_VALUE should only be defined for window aggregates
> -------------------------------------------------------------------
>
>                 Key: CALCITE-7485
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7485
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Yu Xu
>            Assignee: Yu Xu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> FIRST_VALUE and LAST_VALUE are only defined for window aggregates, but can be 
> used without window clause in current main branch.
> test case would be passed as follow:
>  
> {code:java}
> @Test void testFirstAndLastAggFunctionsOfGroupByKeys() {
>     final String sql = "select sal, first_value(sal) as sal_first, 
> last_value(sal) as sal_last from emp group by sal, deptno\n";
>     sql(sql).check();
>   } {code}
> maybe we should fix the issue.
>  



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

Reply via email to