[CALCITE-7471] Alias is not auto generated for MATCH_RECOGNIZE#4882
Merged
snuyanzin merged 1 commit intoapache:mainfrom Apr 13, 2026
Merged
[CALCITE-7471] Alias is not auto generated for MATCH_RECOGNIZE#4882snuyanzin merged 1 commit intoapache:mainfrom
MATCH_RECOGNIZE#4882snuyanzin merged 1 commit intoapache:mainfrom
Conversation
snuyanzin
commented
Apr 12, 2026
| registerMatchRecognize(parentScope, usingScope, | ||
| (SqlMatchRecognize) node, enclosingNode, alias, forceNullable); | ||
| return node; | ||
| return newNode; |
Contributor
Author
There was a problem hiding this comment.
it is initialized at
calcite/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java
Lines 2539 to 2540 in 37448dc
and
calcite/core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java
Lines 2568 to 2574 in 37448dc
so need to reuse it
Member
There was a problem hiding this comment.
Thank you for your detailed explanation.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Jira Link
CALCITE-7471
in case of toggled
identifierExpansionand missed alias for table there should be generated one.However in case of
MATCH_RECOGNIZEit is missed (the PR is going to fix it)example of query
unparsed query (there is
EXPR$0inSELECThowever it is not defined anywhere)