Github user maropu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22226#discussion_r212918991
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/json-functions.sql 
---
    @@ -51,3 +51,8 @@ select from_json('[null, {"a":2}]', 
'array<struct<a:int>>');
     
     select from_json('[{"a": 1}, {"b":2}]', 'array<map<string,int>>');
     select from_json('[{"a": 1}, 2]', 'array<map<string,int>>');
    +
    +-- to_json - array type
    +select to_json(array('1','2','3'));
    +select to_json(array(array(1,2,3),array(4)));
    +
    --- End diff --
    
    super nit: add space afiter `,`, e.g., `select to_json(array('1', '2', 
'3'));`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to