vranes commented on code in PR #60620:
URL: https://github.com/apache/spark/pull/60620#discussion_r4612685050


##########
sql/api/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBaseParser.g4:
##########
@@ -1308,7 +1308,7 @@ binByClause
         (BIN_START AS binStartAlias=errorCapturingIdentifier)?
         (BIN_END AS binEndAlias=errorCapturingIdentifier)?
         (BIN_DISTRIBUTE_RATIO AS binRatioAlias=errorCapturingIdentifier)?
-      RIGHT_PAREN (AS? tblAlias=errorCapturingIdentifier)?
+      RIGHT_PAREN (AS? tblAlias=strictIdentifier)?

Review Comment:
   I prefer to keep this PR scoped to BIN BY. I filed SPARK-61976 
(https://issues.apache.org/jira/browse/SPARK-61976) to track the PIVOT and 
UNPIVOT fix separately.
   
   BIN BY is still disabled by default behind an internal configuration. Given 
that, I do not think a legacy configuration is necessary for this fix.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to