ganeshashree commented on code in PR #58450:
URL: https://github.com/apache/spark/pull/58450#discussion_r3985980176


##########
sql/core/src/test/scala/org/apache/spark/sql/JsonArraySuite.scala:
##########
@@ -154,6 +157,18 @@ class JsonArraySuite extends QueryTest with 
SharedSparkSession {
       Row("[[1]]"))
   }
 
+  test("a function-style string() cast detaches implicit FORMAT JSON like 
CAST(... AS STRING)") {
+    // A user cast to STRING quotes the fragment (detaches implicit FORMAT 
JSON). The function-style
+    // alias string(x) is exactly CAST(x AS STRING) and must behave 
identically: `isImplicitlyJson`

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