snuyanzin commented on code in PR #5210:
URL: https://github.com/apache/calcite/pull/5210#discussion_r3876214145
##########
core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java:
##########
@@ -4934,6 +4934,11 @@ private RexNode convertIdentifier(
String pv = null;
if (bb.isPatternVarRef && identifier.names.size() > 1) {
pv = identifier.names.get(0);
+ // A qualifier that is not a declared pattern variable denotes the
universal variable "*".
+ if (bb.scope instanceof MatchRecognizeScope
+ && !((MatchRecognizeScope) bb.scope).getPatternVars().contains(pv)) {
Review Comment:
yeah, you are right, good catch
updated PR and added a couple of more tests around this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]