Skip to content

Commit 1310d0f

Browse files
committed
chore: Update tests
1 parent cab15c0 commit 1310d0f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
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/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)