cloud-fan commented on a change in pull request #35206:
URL: https://github.com/apache/spark/pull/35206#discussion_r786123159
##########
File path:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
##########
@@ -613,7 +613,17 @@ private[hive] class SparkSQLCLIDriver extends CliDriver
with Logging {
isStatement = statementInProgress(index)
}
- if (beginIndex < line.length()) {
+ // Check the last char is end of nested bracketed comment.
+ val endOfBracketedComment = leavingBracketedComment &&
bracketedCommentLevel == 1
+ // Spark SQL support simple comment and nested bracketed comment in query
body.
+ // But if Spark SQL only received a comment, it will throw parser
exception.
Review comment:
```suggestion
// But if Spark SQL receives a comment alone, it will throw parser
exception.
```
--
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]