entong commented on code in PR #38864:
URL: https://github.com/apache/spark/pull/38864#discussion_r1040592207
##########
sql/core/src/test/java/test/org/apache/spark/sql/JavaSparkSessionSuite.java:
##########
@@ -54,4 +55,19 @@ public void config() {
Assert.assertEquals(spark.conf().get(e.getKey()),
e.getValue().toString());
}
}
+
+ @Test
+ public void sqlParameters() {
+ spark =
SparkSession.builder().master("local[*]").appName("testing").getOrCreate();
+ Map params = new HashMap();
+ params.put("_i1", "INTERVAL '1-1' YEAR TO MONTH");
+ params.put("p2", "'abc'");
Review Comment:
Could you add a test case where the string literal contains a double quote?
--
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]