You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sergey Nuyanzin (Jira)" <ji...@apache.org> on 2026/05/22 10:04:00 UTC
[jira] [Comment Edited] (CALCITE-7538) SqlValidatorImpl should reject MATCH_RECOGNIZE with duplicate MEASURE alias
[ https://issues.apache.org/jira/browse/CALCITE-7538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18082796#comment-18082796 ]
Sergey Nuyanzin edited comment on CALCITE-7538 at 5/22/26 10:03 AM:
--------------------------------------------------------------------
Thank you for the review [~mbudiu], [~caicancai]
was (Author: sergey nuyanzin):
Thanks you for the review [~mbudiu], [~caicancai]
> SqlValidatorImpl should reject MATCH_RECOGNIZE with duplicate MEASURE alias
> ---------------------------------------------------------------------------
>
> Key: CALCITE-7538
> URL: https://issues.apache.org/jira/browse/CALCITE-7538
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Sergey Nuyanzin
> Assignee: Sergey Nuyanzin
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.42.0
>
>
> Right now a query like
> {code:sql}
> SELECT *
> FROM emp
> MATCH_RECOGNIZE (
> MEASURES
> A.deptno AS deptno,
> A.deptno AS deptno
> PATTERN (A B)
> DEFINE
> A AS A.empno = 123
> )
> {code}
> passes validation and fails while SqlToRel conversion.
> Ideally it should fail while validation
--
This message was sent by Atlassian Jira
(v8.20.10#820010)