Skip to content

Commit b8c6c94

Browse files
committed
updates tests
1 parent 4696cdd commit b8c6c94

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/functions.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3906,7 +3906,6 @@ object functions {
39063906
*/
39073907
def schema_of_csv(csv: String): Column = schema_of_csv(lit(csv))
39083908

3909-
39103909
/**
39113910
* Parses a CSV string and infers its schema in DDL format.
39123911
*

sql/core/src/test/resources/sql-tests/results/csv-functions.sql.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ select schema_of_csv(null)
9191
struct<>
9292
-- !query 9 output
9393
org.apache.spark.sql.AnalysisException
94-
cannot resolve 'schema_of_csv(CAST(NULL AS STRING))' due to data type mismatch: The input csv should be a string literal and not null; however, got CAST(NULL AS STRING).; line 1 pos 7
94+
cannot resolve 'schema_of_csv(NULL)' due to data type mismatch: The input csv should be a string literal and not null; however, got NULL.; line 1 pos 7
9595

9696

9797
-- !query 10

0 commit comments

Comments
 (0)