You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Zhen Chen (Jira)" <ji...@apache.org> on 2026/01/16 00:38:00 UTC

[jira] [Resolved] (CALCITE-7331) Support the alias form SELECT * EXCEPT(columns) for SELECT * EXCLUDE(columns)

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

Zhen Chen resolved CALCITE-7331.
--------------------------------
    Resolution: Fixed

Fixed in [{{5e309f2}}|https://github.com/apache/calcite/commit/5e309f24c4b62a9416586d6e3797d5134c678d63]

Thanks for the review [~mbudiu] [~julianhyde] 

> Support the alias form SELECT * EXCEPT(columns) for SELECT * EXCLUDE(columns)
> -----------------------------------------------------------------------------
>
>                 Key: CALCITE-7331
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7331
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Zhen Chen
>            Assignee: Zhen Chen
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> Based on the CALCITE-7310 implementation, this Jira primarily serves as an alias extension. For example:
> SELECT * EXCLUDE(deptno, empno) FROM emp;
> Similarly, it can be written as:
> SELECT * EXCEPT(deptno, empno) FROM emp;
> Similar to the implementation in ClickHouse[1], but the expr in <expr> EXCEPT(col1, col2) only supports *.
> [1] [https://clickhouse.com/docs/zh/sql-reference/statements/select/except-modifier]



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