cloud-fan commented on a change in pull request #28393: URL: https://github.com/apache/spark/pull/28393#discussion_r419883101
########## File path: sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala ########## @@ -500,4 +500,13 @@ class CliSuite extends SparkFunSuite with BeforeAndAfterAll with BeforeAndAfterE | ;""".stripMargin -> "testcomment" ) } + + test("SPARK-31595 Should allow unescaped quote mark in quoted string") { + runCliWithin(1.minute)( + """SELECT '"legal string a';select 1 + 234;""".stripMargin -> "235" + ) + runCliWithin(1.minute)( + """SELECT "legal 'string b";select 22222 + 1;""".stripMargin -> "22223" Review comment: nit: let's not use the multiline string style for a single line string. ---------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org