AngersZhuuuu commented on a change in pull request #31120:
URL: https://github.com/apache/spark/pull/31120#discussion_r554828871



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/jsonExpressions.scala
##########
@@ -509,9 +509,9 @@ case class JsonTuple(children: Seq[Expression])
   examples = """
     Examples:
       > SELECT _FUNC_('{"a":1, "b":0.8}', 'a INT, b DOUBLE');
-       {"a":1,"b":0.8}
+       {1, 0.8}

Review comment:
       > The doc example of `CreateNamedStruct` is
   > 
   > ```
   > > SELECT _FUNC_("a", 1, "b", 2, "c", 3);
   >        {"a":1,"b":2,"c":3}
   > ```
   > 
   > I think it's a valid syntax for named rows.
   
   I got it, seems because I run this  SQL in normal UT, i just return struct 
data's value part. I was misled.




----------------------------------------------------------------
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

Reply via email to