maropu commented on a change in pull request #31054:
URL: https://github.com/apache/spark/pull/31054#discussion_r553058432
##########
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)
for (index <- 0 until line.length) {
+ if (index > 0 && index - 1 == bracketedCommentRightBound) {
Review comment:
Please leave some comments here about why we need to decrement
`bracketedCommentLevel` at the beginning of this loop?
----------------------------------------------------------------
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]