You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sql/core/src/test/resources/sql-tests/results/typeCoercion/native/division.sql.out
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -798,7 +798,7 @@ SELECT cast(1 as string) / cast('2017-12-11 09:30:00.0' as timestamp) FROM t
798
798
struct<>
799
799
-- !query 95 output
800
800
org.apache.spark.sql.AnalysisException
801
-
cannot resolve '(CAST(CAST(1 AS STRING) AS CALENDARINTERVAL) / CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(CAST(1 AS STRING) AS CALENDARINTERVAL) / CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (calendarinterval and timestamp).; line 1 pos 7
801
+
cannot resolve '(CAST(CAST(1 AS STRING) AS INTERVAL) / CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST(CAST(1 AS STRING) AS INTERVAL) / CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (interval and timestamp).; line 1 pos 7
802
802
803
803
804
804
-- !query 96
@@ -1095,7 +1095,7 @@ SELECT cast('2017-12-11 09:30:00.0' as timestamp) / cast(1 as string) FROM t
1095
1095
struct<>
1096
1096
-- !query 128 output
1097
1097
org.apache.spark.sql.AnalysisException
1098
-
cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) / CAST(CAST(1 AS STRING) AS CALENDARINTERVAL))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) / CAST(CAST(1 AS STRING) AS CALENDARINTERVAL))' (timestamp and calendarinterval).; line 1 pos 7
1098
+
cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) / CAST(CAST(1 AS STRING) AS INTERVAL))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) / CAST(CAST(1 AS STRING) AS INTERVAL))' (timestamp and interval).; line 1 pos 7
Copy file name to clipboardExpand all lines: sql/core/src/test/resources/sql-tests/results/typeCoercion/native/promoteStrings.sql.out
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ cannot resolve '(CAST('1' AS DOUBLE) + CAST(1 AS BOOLEAN))' due to data type mis
95
95
-- !query 11
96
96
SELECT '1' + cast('2017-12-11 09:30:00.0' as timestamp) FROM t
97
97
-- !query 11 schema
98
-
struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) + CAST(1 AS CALENDARINTERVAL) AS TIMESTAMP):timestamp>
98
+
struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) + CAST(1 AS INTERVAL) AS TIMESTAMP):timestamp>
99
99
-- !query 11 output
100
100
NULL
101
101
@@ -197,7 +197,7 @@ SELECT '1' - cast('2017-12-11 09:30:00.0' as timestamp) FROM t
197
197
struct<>
198
198
-- !query 23 output
199
199
org.apache.spark.sql.AnalysisException
200
-
cannot resolve '(CAST('1' AS CALENDARINTERVAL) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST('1' AS CALENDARINTERVAL) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (calendarinterval and timestamp).; line 1 pos 7
200
+
cannot resolve '(CAST('1' AS INTERVAL) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST('1' AS INTERVAL) - CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (interval and timestamp).; line 1 pos 7
201
201
202
202
203
203
-- !query 24
@@ -297,7 +297,7 @@ SELECT '1' * cast('2017-12-11 09:30:00.0' as timestamp) FROM t
297
297
struct<>
298
298
-- !query 35 output
299
299
org.apache.spark.sql.AnalysisException
300
-
cannot resolve '(CAST('1' AS CALENDARINTERVAL) * CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST('1' AS CALENDARINTERVAL) * CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (calendarinterval and timestamp).; line 1 pos 7
300
+
cannot resolve '(CAST('1' AS INTERVAL) * CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST('1' AS INTERVAL) * CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (interval and timestamp).; line 1 pos 7
301
301
302
302
303
303
-- !query 36
@@ -397,7 +397,7 @@ SELECT '1' / cast('2017-12-11 09:30:00.0' as timestamp) FROM t
397
397
struct<>
398
398
-- !query 47 output
399
399
org.apache.spark.sql.AnalysisException
400
-
cannot resolve '(CAST('1' AS CALENDARINTERVAL) / CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST('1' AS CALENDARINTERVAL) / CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (calendarinterval and timestamp).; line 1 pos 7
400
+
cannot resolve '(CAST('1' AS INTERVAL) / CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST('1' AS INTERVAL) / CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (interval and timestamp).; line 1 pos 7
401
401
402
402
403
403
-- !query 48
@@ -497,7 +497,7 @@ SELECT '1' % cast('2017-12-11 09:30:00.0' as timestamp) FROM t
497
497
struct<>
498
498
-- !query 59 output
499
499
org.apache.spark.sql.AnalysisException
500
-
cannot resolve '(CAST('1' AS CALENDARINTERVAL) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST('1' AS CALENDARINTERVAL) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (calendarinterval and timestamp).; line 1 pos 7
500
+
cannot resolve '(CAST('1' AS INTERVAL) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in '(CAST('1' AS INTERVAL) % CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (interval and timestamp).; line 1 pos 7
501
501
502
502
503
503
-- !query 60
@@ -597,7 +597,7 @@ SELECT pmod('1', cast('2017-12-11 09:30:00.0' as timestamp)) FROM t
597
597
struct<>
598
598
-- !query 71 output
599
599
org.apache.spark.sql.AnalysisException
600
-
cannot resolve 'pmod(CAST('1' AS CALENDARINTERVAL), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST('1' AS CALENDARINTERVAL), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (calendarinterval and timestamp).; line 1 pos 7
600
+
cannot resolve 'pmod(CAST('1' AS INTERVAL), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' due to data type mismatch: differing types in 'pmod(CAST('1' AS INTERVAL), CAST('2017-12-11 09:30:00.0' AS TIMESTAMP))' (interval and timestamp).; line 1 pos 7
601
601
602
602
603
603
-- !query 72
@@ -686,7 +686,7 @@ cannot resolve '(CAST(1 AS BOOLEAN) + CAST('1' AS DOUBLE))' due to data type mis
686
686
-- !query 82
687
687
SELECT cast('2017-12-11 09:30:00.0' as timestamp) + '1' FROM t
688
688
-- !query 82 schema
689
-
struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) + CAST(1 AS CALENDARINTERVAL) AS TIMESTAMP):timestamp>
689
+
struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) + CAST(1 AS INTERVAL) AS TIMESTAMP):timestamp>
690
690
-- !query 82 output
691
691
NULL
692
692
@@ -777,7 +777,7 @@ cannot resolve '(CAST(1 AS BOOLEAN) - CAST('1' AS DOUBLE))' due to data type mis
777
777
-- !query 93
778
778
SELECT cast('2017-12-11 09:30:00.0' as timestamp) - '1' FROM t
779
779
-- !query 93 schema
780
-
struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) - CAST(1 AS CALENDARINTERVAL) AS TIMESTAMP):timestamp>
780
+
struct<CAST(CAST(2017-12-11 09:30:00.0 AS TIMESTAMP) - CAST(1 AS INTERVAL) AS TIMESTAMP):timestamp>
781
781
-- !query 93 output
782
782
NULL
783
783
@@ -871,7 +871,7 @@ SELECT cast('2017-12-11 09:30:00.0' as timestamp) * '1' FROM t
871
871
struct<>
872
872
-- !query 104 output
873
873
org.apache.spark.sql.AnalysisException
874
-
cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) * CAST('1' AS CALENDARINTERVAL))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) * CAST('1' AS CALENDARINTERVAL))' (timestamp and calendarinterval).; line 1 pos 7
874
+
cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) * CAST('1' AS INTERVAL))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) * CAST('1' AS INTERVAL))' (timestamp and interval).; line 1 pos 7
875
875
876
876
877
877
-- !query 105
@@ -963,7 +963,7 @@ SELECT cast('2017-12-11 09:30:00.0' as timestamp) / '1' FROM t
963
963
struct<>
964
964
-- !query 115 output
965
965
org.apache.spark.sql.AnalysisException
966
-
cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) / CAST('1' AS CALENDARINTERVAL))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) / CAST('1' AS CALENDARINTERVAL))' (timestamp and calendarinterval).; line 1 pos 7
966
+
cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) / CAST('1' AS INTERVAL))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) / CAST('1' AS INTERVAL))' (timestamp and interval).; line 1 pos 7
967
967
968
968
969
969
-- !query 116
@@ -1055,7 +1055,7 @@ SELECT cast('2017-12-11 09:30:00.0' as timestamp) % '1' FROM t
1055
1055
struct<>
1056
1056
-- !query 126 output
1057
1057
org.apache.spark.sql.AnalysisException
1058
-
cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST('1' AS CALENDARINTERVAL))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST('1' AS CALENDARINTERVAL))' (timestamp and calendarinterval).; line 1 pos 7
1058
+
cannot resolve '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST('1' AS INTERVAL))' due to data type mismatch: differing types in '(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP) % CAST('1' AS INTERVAL))' (timestamp and interval).; line 1 pos 7
1059
1059
1060
1060
1061
1061
-- !query 127
@@ -1147,7 +1147,7 @@ SELECT pmod(cast('2017-12-11 09:30:00.0' as timestamp), '1') FROM t
1147
1147
struct<>
1148
1148
-- !query 137 output
1149
1149
org.apache.spark.sql.AnalysisException
1150
-
cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS CALENDARINTERVAL))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS CALENDARINTERVAL))' (timestamp and calendarinterval).; line 1 pos 7
1150
+
cannot resolve 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS INTERVAL))' due to data type mismatch: differing types in 'pmod(CAST('2017-12-11 09:30:00.0' AS TIMESTAMP), CAST('1' AS INTERVAL))' (timestamp and interval).; line 1 pos 7
0 commit comments