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

    https://github.com/apache/spark/pull/22626#discussion_r230544775
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/csv-functions.sql ---
    @@ -15,3 +15,10 @@ CREATE TEMPORARY VIEW csvTable(csvField, a) AS SELECT * 
FROM VALUES ('1,abc', 'a
     SELECT schema_of_csv(csvField) FROM csvTable;
     -- Clean up
     DROP VIEW IF EXISTS csvTable;
    +-- to_csv
    +select to_csv(named_struct('a', 1, 'b', 2));
    +select to_csv(named_struct('time', to_timestamp('2015-08-26', 
'yyyy-MM-dd')), map('timestampFormat', 'dd/MM/yyyy'));
    +-- Check if errors handled
    +select to_csv(named_struct('a', 1, 'b', 2), named_struct('mode', 
'PERMISSIVE'));
    +select to_csv(named_struct('a', 1, 'b', 2), map('mode', 1));
    --- End diff --
    
    This one too since the exception is from `convertToMapData`. We just only 
need one test - this one or the one right above. One of them can be removed.


---

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

Reply via email to