yadavay-amzn commented on code in PR #55466:
URL: https://github.com/apache/spark/pull/55466#discussion_r3313604244


##########
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala:
##########
@@ -674,7 +674,16 @@ class CliSuite extends SparkFunSuite {
       "SELECT /* comment */  1;" -> Seq("SELECT /* comment */  1"),
       "-- comment " -> Seq(),
       "-- comment \nSELECT 1" -> Seq("-- comment \nSELECT 1"),
-      "/*  comment */  " -> Seq()
+      "/*  comment */  " -> Seq(),
+      // SPARK-54876: statement after semicolon ending with block comment 
should not be dropped
+      "SELECT 1; SELECT 2 /* comment */" -> Seq("SELECT 1", " SELECT 2 /* 
comment */"),
+      // SPARK-54876: line comment followed by block comment should produce 
empty result
+      "-- foo\n/* bar */" -> Seq(),
+      "SELECT 1; -- foo\n /* bar */" -> Seq("SELECT 1"),
+      // SPARK-54876: nested block comments
+      "SELECT 1; /* outer /* inner */ */" -> Seq("SELECT 1"),
+      // SPARK-54876: preceding closed block comment + line comment (no SQL 
statement)
+      "/* a */ -- foo\n/* b */" -> Seq()

Review Comment:
   Done



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