Skip to content

Commit 179607a

Browse files
committed
chore: Update tests
1 parent cab15c0 commit 179607a

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

datafusion/core/tests/expr_api/simplification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ fn multiple_now() -> Result<()> {
514514
// expect the same timestamp appears in both exprs
515515
let actual = get_optimized_plan_formatted(plan, &time);
516516
let expected = format!(
517-
"Projection: TimestampNanosecond({}, Some(\"+00\")) AS now(), TimestampNanosecond({}, Some(\"+00\")) AS t2\n TableScan: test",
517+
"Projection: TimestampNanosecond({}, Some(\"+00:00\")) AS now(), TimestampNanosecond({}, Some(\"+00:00\")) AS t2\n TableScan: test",
518518
time.timestamp_nanos_opt().unwrap(),
519519
time.timestamp_nanos_opt().unwrap()
520520
);

datafusion/sqllogictest/test_files/arrow_typeof.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Timestamp(Nanosecond, None)
6767
query T
6868
SELECT arrow_typeof(now())
6969
----
70-
Timestamp(Nanosecond, Some("+00"))
70+
Timestamp(Nanosecond, Some("+00:00"))
7171

7272
# arrow_typeof_timestamp_date32(
7373
query T

datafusion/sqllogictest/test_files/dates.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ g
8585
h
8686

8787
## Plan error when compare Utf8 and timestamp in where clause
88-
statement error DataFusion error: type_coercion\ncaused by\nError during planning: Cannot coerce arithmetic expression Timestamp\(Nanosecond, Some\("\+00"\)\) \+ Utf8 to valid types
88+
statement error DataFusion error: type_coercion\ncaused by\nError during planning: Cannot coerce arithmetic expression Timestamp\(Nanosecond, Some\("\+00:00"\)\) \+ Utf8 to valid types
8989
select i_item_desc from test
9090
where d3_date > now() + '5 days';
9191

datafusion/sqllogictest/test_files/timestamps.slt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ select arrow_typeof(now());
8181
----
8282
Timestamp(Nanosecond, Some("+08"))
8383

84+
query I
85+
SELECT count(1) result FROM (SELECT now() as n) a WHERE n > '2000-01-01'::date;
86+
----
87+
1
88+
8489
statement ok
8590
SET TIME ZONE = '+00'
8691

0 commit comments

Comments
 (0)