adrian-wang commented on a change in pull request #28393:
URL: https://github.com/apache/spark/pull/28393#discussion_r418944931
##########
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"
Review comment:
This is not the same case. `sql()` only accepts single sql statement,
even
```scala
sql("select 1; select 2;")
```
will return error.
----------------------------------------------------------------
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]