Skip to content

Commit 889476d

Browse files
committed
Update error message
1 parent cf0508f commit 889476d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

datafusion/sqllogictest/test_files/dates.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ query error input contains invalid characters
183183
SELECT to_date('2020-09-08 12/00/00+00:00', '%c', '%+')
184184

185185
# to_date with broken formatting
186-
query error bad or unsupported format string
186+
query error DataFusion error: Execution error: Error parsing timestamp from '2020\-09\-08 12/00/00\+00:00' using format '%q': trailing input
187187
SELECT to_date('2020-09-08 12/00/00+00:00', '%q')
188188

189189
statement ok

datafusion/sqllogictest/test_files/select.slt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,5 +1869,5 @@ select *, count(*) over() as ta from t;
18691869
3 4
18701870
1 4
18711871

1872-
query
1873-
drop table t;
1872+
statement count 0
1873+
drop table t;

datafusion/sqllogictest/test_files/timestamps.slt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,23 +2241,23 @@ query error input contains invalid characters
22412241
SELECT to_timestamp_seconds('2020-09-08 12/00/00+00:00', '%c', '%+')
22422242

22432243
# to_timestamp with broken formatting
2244-
query error bad or unsupported format string
2244+
query error DataFusion error: Execution error: Error parsing timestamp from '2020\-09\-08 12/00/00\+00:00' using format '%q': trailing input
22452245
SELECT to_timestamp('2020-09-08 12/00/00+00:00', '%q')
22462246

22472247
# to_timestamp_nanos with broken formatting
2248-
query error bad or unsupported format string
2248+
query error DataFusion error: Execution error: Error parsing timestamp from '2020\-09\-08 12/00/00\+00:00' using format '%q': trailing input
22492249
SELECT to_timestamp_nanos('2020-09-08 12/00/00+00:00', '%q')
22502250

22512251
# to_timestamp_millis with broken formatting
2252-
query error bad or unsupported format string
2252+
query error DataFusion error: Execution error: Error parsing timestamp from '2020\-09\-08 12/00/00\+00:00' using format '%q': trailing input
22532253
SELECT to_timestamp_millis('2020-09-08 12/00/00+00:00', '%q')
22542254

22552255
# to_timestamp_micros with broken formatting
2256-
query error bad or unsupported format string
2256+
query error DataFusion error: Execution error: Error parsing timestamp from '2020\-09\-08 12/00/00\+00:00' using format '%q': trailing input
22572257
SELECT to_timestamp_micros('2020-09-08 12/00/00+00:00', '%q')
22582258

22592259
# to_timestamp_seconds with broken formatting
2260-
query error bad or unsupported format string
2260+
query error DataFusion error: Execution error: Error parsing timestamp from '2020\-09\-08 12/00/00\+00:00' using format '%q': trailing input
22612261
SELECT to_timestamp_seconds('2020-09-08 12/00/00+00:00', '%q')
22622262

22632263
# Create string timestamp table with different formats

0 commit comments

Comments
 (0)