You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/03/07 07:54:00 UTC

[jira] [Updated] (CALCITE-6306) FILTER clauses for aggregate functions are not supported in MySQL, MariaDB and Starrocks

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

ASF GitHub Bot updated CALCITE-6306:
------------------------------------
    Labels: pull-request-available  (was: )

> FILTER clauses for aggregate functions are not supported in MySQL, MariaDB and Starrocks
> ----------------------------------------------------------------------------------------
>
>                 Key: CALCITE-6306
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6306
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: hongyu guo
>            Priority: Minor
>              Labels: pull-request-available
>
> {code:sql}
> mysql> select sum(x) filter (where x = 1) from t;
> ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(where x = 1) from t' at line 1 {code}
> See details in https://modern-sql.com/feature/filter



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