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

    https://github.com/apache/spark/pull/18930#discussion_r133723113
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/json-functions.sql 
---
    @@ -20,3 +20,9 @@ select from_json('{"a":1}', 'a InvalidType');
     select from_json('{"a":1}', 'a INT', named_struct('mode', 'PERMISSIVE'));
     select from_json('{"a":1}', 'a INT', map('mode', 1));
     select from_json();
    +-- json_tuple
    +SELECT json_tuple('{"a" : 1, "b" : 2}', CAST(NULL AS STRING), 'b', 
CAST(NULL AS STRING), 'a');
    +CREATE TEMPORARY VIEW jsonTable(jsonField, a, b) AS SELECT * FROM VALUES 
('{"a": 1, "b": 2}', 'a', 'b');
    +SELECT json_tuple(jsonField, b, CAST(NULL AS STRING), 'a') FROM jsonTable;
    +-- Clean up
    +DROP VIEW IF EXISTS jsonTable;
    --- End diff --
    
    @HyukjinKwon @viirya Fixed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to