turboFei commented on a change in pull request #31054:
URL: https://github.com/apache/spark/pull/31054#discussion_r553070000



##########
File path: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
##########
@@ -585,7 +590,7 @@ private[hive] class SparkSQLCLIDriver extends CliDriver 
with Logging {
         if (insideSingleQuote || insideDoubleQuote) {
           // Ignores '/' in any case of quotes
         } else if (insideBracketedComment && line.charAt(index - 1) == '*' ) {
-          bracketedCommentLevel -= 1

Review comment:
       yes, we need decrease bracketedCommentLevel in the next loop

##########
File path: 
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
##########
@@ -539,6 +540,10 @@ private[hive] class SparkSQLCLIDriver extends CliDriver 
with Logging {
       index > beginIndex && !s"${line.charAt(index)}".trim.isEmpty)

Review comment:
       ok




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

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