maropu commented on a change in pull request #27920: [SPARK-31102][SQL] Spark-sql fails to parse when contains comment. URL: https://github.com/apache/spark/pull/27920#discussion_r407348439
########## File path: sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala ########## @@ -454,24 +454,24 @@ class CliSuite extends SparkFunSuite with BeforeAndAfterAll with BeforeAndAfterE } test("SPARK-30049 Should not complain for quotes in commented lines") { - runCliWithin(1.minute)( + runCliWithin(3.minute)( """SELECT concat('test', 'comment') -- someone's comment here |;""".stripMargin -> "testcomment" ) + runCliWithin(3.minute)( + """SELECT concat('test', 'comment'), + | -- someone's comment here + | 2;""".stripMargin -> "testcomment" + ) Review comment: Could you move this test into a new test unit just like `test("SPARK-31102: XXXX") {...}`? ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org