File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sql/core/src/test/resources/sql-tests/results/typeCoercion/native Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) + INTERVAL '2 days' AS TIME
118118-- !query
119119select cast('2017-12-11 09:30:00' as date) + interval 2 day
120120-- !query schema
121- struct<CAST(CAST(CAST( 2017-12-11 09:30:00 AS DATE) AS TIMESTAMP) + INTERVAL '2 days' AS DATE) :date>
121+ struct<CAST(2017-12-11 09:30:00 AS DATE) + INTERVAL '2 days':date>
122122-- !query output
1231232017-12-13
124124
@@ -231,7 +231,7 @@ struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) + INTERVAL '2 days' AS TIME
231231-- !query
232232select interval 2 day + cast('2017-12-11 09:30:00' as date)
233233-- !query schema
234- struct<CAST(CAST(CAST( 2017-12-11 09:30:00 AS DATE) AS TIMESTAMP) + INTERVAL '2 days' AS DATE) :date>
234+ struct<CAST(2017-12-11 09:30:00 AS DATE) + INTERVAL '2 days':date>
235235-- !query output
2362362017-12-13
237237
@@ -344,6 +344,6 @@ struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) - INTERVAL '2 days' AS TIME
344344-- !query
345345select cast('2017-12-11 09:30:00' as date) - interval 2 day
346346-- !query schema
347- struct<CAST(CAST(CAST( 2017-12-11 09:30:00 AS DATE) AS TIMESTAMP) - INTERVAL '2 days' AS DATE ):date>
347+ struct<CAST(2017-12-11 09:30:00 AS DATE) + ( - INTERVAL '2 days'):date>
348348-- !query output
3493492017-12-09
You can’t perform that action at this time.
0 commit comments