Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions sql/core/src/test/resources/sql-tests/results/ansi/date.sql.out
Original file line number Diff line number Diff line change
Expand Up @@ -353,19 +353,17 @@ NULL
-- !query
select date_add(timestamp_ltz'2011-11-11 12:12:12', 1)
-- !query schema
struct<>
struct<date_add(TIMESTAMP '2011-11-11 12:12:12', 1):date>
-- !query output
org.apache.spark.sql.AnalysisException
cannot resolve 'date_add(TIMESTAMP '2011-11-11 12:12:12', 1)' due to data type mismatch: argument 1 requires date type, however, 'TIMESTAMP '2011-11-11 12:12:12'' is of timestamp type.; line 1 pos 7
2011-11-12


-- !query
select date_add(timestamp_ntz'2011-11-11 12:12:12', 1)
-- !query schema
struct<>
struct<date_add(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1):date>
-- !query output
org.apache.spark.sql.AnalysisException
cannot resolve 'date_add(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1)' due to data type mismatch: argument 1 requires date type, however, 'TIMESTAMP_NTZ '2011-11-11 12:12:12'' is of timestamp_ntz type.; line 1 pos 7
2011-11-12


-- !query
Expand Down Expand Up @@ -463,19 +461,17 @@ NULL
-- !query
select date_sub(timestamp_ltz'2011-11-11 12:12:12', 1)
-- !query schema
struct<>
struct<date_sub(TIMESTAMP '2011-11-11 12:12:12', 1):date>
-- !query output
org.apache.spark.sql.AnalysisException
cannot resolve 'date_sub(TIMESTAMP '2011-11-11 12:12:12', 1)' due to data type mismatch: argument 1 requires date type, however, 'TIMESTAMP '2011-11-11 12:12:12'' is of timestamp type.; line 1 pos 7
2011-11-10


-- !query
select date_sub(timestamp_ntz'2011-11-11 12:12:12', 1)
-- !query schema
struct<>
struct<date_sub(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1):date>
-- !query output
org.apache.spark.sql.AnalysisException
cannot resolve 'date_sub(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1)' due to data type mismatch: argument 1 requires date type, however, 'TIMESTAMP_NTZ '2011-11-11 12:12:12'' is of timestamp_ntz type.; line 1 pos 7
2011-11-10


-- !query
Expand Down
10 changes: 4 additions & 6 deletions sql/core/src/test/resources/sql-tests/results/date.sql.out
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,9 @@ struct<date_add(TIMESTAMP '2011-11-11 12:12:12', 1):date>
-- !query
select date_add(timestamp_ntz'2011-11-11 12:12:12', 1)
-- !query schema
struct<>
struct<date_add(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1):date>
-- !query output
org.apache.spark.sql.AnalysisException
cannot resolve 'date_add(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1)' due to data type mismatch: argument 1 requires date type, however, 'TIMESTAMP_NTZ '2011-11-11 12:12:12'' is of timestamp_ntz type.; line 1 pos 7
2011-11-12


-- !query
Expand Down Expand Up @@ -458,10 +457,9 @@ struct<date_sub(TIMESTAMP '2011-11-11 12:12:12', 1):date>
-- !query
select date_sub(timestamp_ntz'2011-11-11 12:12:12', 1)
-- !query schema
struct<>
struct<date_sub(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1):date>
-- !query output
org.apache.spark.sql.AnalysisException
cannot resolve 'date_sub(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1)' due to data type mismatch: argument 1 requires date type, however, 'TIMESTAMP_NTZ '2011-11-11 12:12:12'' is of timestamp_ntz type.; line 1 pos 7
2011-11-10


-- !query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,9 @@ struct<date_add(TIMESTAMP '2011-11-11 12:12:12', 1):date>
-- !query
select date_add(timestamp_ntz'2011-11-11 12:12:12', 1)
-- !query schema
struct<>
struct<date_add(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1):date>
-- !query output
org.apache.spark.sql.AnalysisException
cannot resolve 'date_add(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1)' due to data type mismatch: argument 1 requires date type, however, 'TIMESTAMP_NTZ '2011-11-11 12:12:12'' is of timestamp_ntz type.; line 1 pos 7
2011-11-12


-- !query
Expand Down Expand Up @@ -458,10 +457,9 @@ struct<date_sub(TIMESTAMP '2011-11-11 12:12:12', 1):date>
-- !query
select date_sub(timestamp_ntz'2011-11-11 12:12:12', 1)
-- !query schema
struct<>
struct<date_sub(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1):date>
-- !query output
org.apache.spark.sql.AnalysisException
cannot resolve 'date_sub(TIMESTAMP_NTZ '2011-11-11 12:12:12', 1)' due to data type mismatch: argument 1 requires date type, however, 'TIMESTAMP_NTZ '2011-11-11 12:12:12'' is of timestamp_ntz type.; line 1 pos 7
2011-11-10


-- !query
Expand Down