[
https://issues.apache.org/jira/browse/FLINK-39731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18082836#comment-18082836
]
Sergey Nuyanzin commented on FLINK-39731:
-----------------------------------------
Merged as
[92ec61e6968445650f5ecd1e787072641e77fed0|https://github.com/apache/flink/commit/92ec61e6968445650f5ecd1e787072641e77fed0]
> SqlValidatorImpl should reject MATCH_RECOGNIZE with duplicate MEASURE
> ---------------------------------------------------------------------
>
> Key: FLINK-39731
> URL: https://issues.apache.org/jira/browse/FLINK-39731
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Reporter: Sergey Nuyanzin
> Assignee: Sergey Nuyanzin
> Priority: Major
> Labels: pull-request-available
>
> root cause is https://issues.apache.org/jira/browse/CALCITE-7538
> example of query
> {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)