Skip to content

Commit b14a588

Browse files
committed
Update snapshot tests
1 parent 1694543 commit b14a588

File tree

12 files changed

+102
-102
lines changed

12 files changed

+102
-102
lines changed

datafusion/sqllogictest/test_files/aggregate.slt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5422,10 +5422,10 @@ as values
54225422
statement ok
54235423
create table t as
54245424
select
5425-
arrow_cast(column1, 'Timestamp(Nanosecond, None)') as nanos,
5426-
arrow_cast(column1, 'Timestamp(Microsecond, None)') as micros,
5427-
arrow_cast(column1, 'Timestamp(Millisecond, None)') as millis,
5428-
arrow_cast(column1, 'Timestamp(Second, None)') as secs,
5425+
arrow_cast(column1, 'Timestamp(ns)') as nanos,
5426+
arrow_cast(column1, 'Timestamp(µs)') as micros,
5427+
arrow_cast(column1, 'Timestamp(ms)') as millis,
5428+
arrow_cast(column1, 'Timestamp(s)') as secs,
54295429
arrow_cast(column1, 'Timestamp(Nanosecond, Some("UTC"))') as nanos_utc,
54305430
arrow_cast(column1, 'Timestamp(Microsecond, Some("UTC"))') as micros_utc,
54315431
arrow_cast(column1, 'Timestamp(Millisecond, Some("UTC"))') as millis_utc,
@@ -5508,7 +5508,7 @@ SELECT tag, avg(nanos), avg(micros), avg(millis), avg(secs) FROM t GROUP BY tag
55085508

55095509
# aggregate_duration_array_agg
55105510
query T?
5511-
SELECT tag, array_agg(millis - arrow_cast(secs, 'Timestamp(Millisecond, None)')) FROM t GROUP BY tag ORDER BY tag;
5511+
SELECT tag, array_agg(millis - arrow_cast(secs, 'Timestamp(ms)')) FROM t GROUP BY tag ORDER BY tag;
55125512
----
55135513
X [0 days 0 hours 0 mins 0.011 secs, 0 days 0 hours 0 mins 0.123 secs]
55145514
Y [NULL, 0 days 0 hours 0 mins 0.432 secs]

datafusion/sqllogictest/test_files/array.slt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7189,12 +7189,12 @@ select generate_series('2021-01-01'::timestamp, '2021-01-01T15:00:00'::timestamp
71897189

71907190
# Other timestamp types are coerced to nanosecond
71917191
query ?
7192-
select generate_series(arrow_cast('2021-01-01'::timestamp, 'Timestamp(Second, None)'), '2021-01-01T15:00:00'::timestamp, INTERVAL '1' HOUR);
7192+
select generate_series(arrow_cast('2021-01-01'::timestamp, 'Timestamp(s)'), '2021-01-01T15:00:00'::timestamp, INTERVAL '1' HOUR);
71937193
----
71947194
[2021-01-01T00:00:00, 2021-01-01T01:00:00, 2021-01-01T02:00:00, 2021-01-01T03:00:00, 2021-01-01T04:00:00, 2021-01-01T05:00:00, 2021-01-01T06:00:00, 2021-01-01T07:00:00, 2021-01-01T08:00:00, 2021-01-01T09:00:00, 2021-01-01T10:00:00, 2021-01-01T11:00:00, 2021-01-01T12:00:00, 2021-01-01T13:00:00, 2021-01-01T14:00:00, 2021-01-01T15:00:00]
71957195

71967196
query ?
7197-
select generate_series('2021-01-01'::timestamp, arrow_cast('2021-01-01T15:00:00'::timestamp, 'Timestamp(Microsecond, None)'), INTERVAL '1' HOUR);
7197+
select generate_series('2021-01-01'::timestamp, arrow_cast('2021-01-01T15:00:00'::timestamp, 'Timestamp(µs)'), INTERVAL '1' HOUR);
71987198
----
71997199
[2021-01-01T00:00:00, 2021-01-01T01:00:00, 2021-01-01T02:00:00, 2021-01-01T03:00:00, 2021-01-01T04:00:00, 2021-01-01T05:00:00, 2021-01-01T06:00:00, 2021-01-01T07:00:00, 2021-01-01T08:00:00, 2021-01-01T09:00:00, 2021-01-01T10:00:00, 2021-01-01T11:00:00, 2021-01-01T12:00:00, 2021-01-01T13:00:00, 2021-01-01T14:00:00, 2021-01-01T15:00:00]
72007200

datafusion/sqllogictest/test_files/arrow_typeof.slt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ SELECT
123123
arrow_typeof(arrow_cast('foo', 'Utf8View')) as col_utf8_view,
124124
arrow_typeof(arrow_cast('foo', 'Binary')) as col_binary,
125125
arrow_typeof(arrow_cast('foo', 'LargeBinary')) as col_large_binary,
126-
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Second, None)')) as col_ts_s,
127-
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Millisecond, None)')) as col_ts_ms,
128-
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Microsecond, None)')) as col_ts_us,
129-
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Nanosecond, None)')) as col_ts_ns,
126+
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(s)')) as col_ts_s,
127+
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(ms)')) as col_ts_ms,
128+
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(µs)')) as col_ts_us,
129+
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(ns)')) as col_ts_ns,
130130
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Second, Some("+08:00"))')) as col_tstz_s,
131131
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Millisecond, Some("+08:00"))')) as col_tstz_ms,
132132
arrow_typeof(arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Microsecond, Some("+08:00"))')) as col_tstz_us,
@@ -242,10 +242,10 @@ drop table foo
242242

243243
statement ok
244244
create table foo as select
245-
arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Second, None)') as col_ts_s,
246-
arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Millisecond, None)') as col_ts_ms,
247-
arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Microsecond, None)') as col_ts_us,
248-
arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(Nanosecond, None)') as col_ts_ns
245+
arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(s)') as col_ts_s,
246+
arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(ms)') as col_ts_ms,
247+
arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(µs)') as col_ts_us,
248+
arrow_cast(to_timestamp('2020-01-02 01:01:11.1234567890Z'), 'Timestamp(ns)') as col_ts_ns
249249
;
250250

251251
## Ensure each column in the table has the expected type

datafusion/sqllogictest/test_files/datetime/date_part.slt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ with t as (values
4040
)
4141
SELECT
4242
-- nanoseconds, with no, utc, and local timezone
43-
arrow_cast(column1, 'Timestamp(Nanosecond, None)') as ts_nano_no_tz,
43+
arrow_cast(column1, 'Timestamp(ns)') as ts_nano_no_tz,
4444
arrow_cast(column1, 'Timestamp(Nanosecond, Some("UTC"))') as ts_nano_utc,
4545
arrow_cast(column1, 'Timestamp(Nanosecond, Some("America/New_York"))') as ts_nano_eastern,
4646
-- milliseconds, with no, utc, and local timezone
47-
arrow_cast(column1, 'Timestamp(Millisecond, None)') as ts_milli_no_tz,
47+
arrow_cast(column1, 'Timestamp(ms)') as ts_milli_no_tz,
4848
arrow_cast(column1, 'Timestamp(Millisecond, Some("UTC"))') as ts_milli_utc,
4949
arrow_cast(column1, 'Timestamp(Millisecond, Some("America/New_York"))') as ts_milli_eastern
5050
FROM t;

datafusion/sqllogictest/test_files/datetime/timestamps.slt

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
## Common timestamp data
2020
#
2121
# ts_data: Int64 nanoseconds
22-
# ts_data_nanos: Timestamp(Nanosecond, None)
23-
# ts_data_micros: Timestamp(Microsecond, None)
24-
# ts_data_millis: Timestamp(Millisecond, None)
25-
# ts_data_secs: Timestamp(Second, None)
22+
# ts_data_nanos: Timestamp(ns)
23+
# ts_data_micros: Timestamp(µs)
24+
# ts_data_millis: Timestamp(ms)
25+
# ts_data_secs: Timestamp(s)
2626
##########
2727

2828
# Create timestamp tables with different precisions but the same logical values
@@ -34,16 +34,16 @@ create table ts_data(ts bigint, value int) as values
3434
(1599565349190855123, 3);
3535

3636
statement ok
37-
create table ts_data_nanos as select arrow_cast(ts, 'Timestamp(Nanosecond, None)') as ts, value from ts_data;
37+
create table ts_data_nanos as select arrow_cast(ts, 'Timestamp(ns)') as ts, value from ts_data;
3838

3939
statement ok
40-
create table ts_data_micros as select arrow_cast(ts / 1000, 'Timestamp(Microsecond, None)') as ts, value from ts_data;
40+
create table ts_data_micros as select arrow_cast(ts / 1000, 'Timestamp(µs)') as ts, value from ts_data;
4141

4242
statement ok
43-
create table ts_data_millis as select arrow_cast(ts / 1000000, 'Timestamp(Millisecond, None)') as ts, value from ts_data;
43+
create table ts_data_millis as select arrow_cast(ts / 1000000, 'Timestamp(ms)') as ts, value from ts_data;
4444

4545
statement ok
46-
create table ts_data_secs as select arrow_cast(ts / 1000000000, 'Timestamp(Second, None)') as ts, value from ts_data;
46+
create table ts_data_secs as select arrow_cast(ts / 1000000000, 'Timestamp(s)') as ts, value from ts_data;
4747

4848
statement ok
4949
create table ts_data_micros_kolkata as select arrow_cast(ts / 1000, 'Timestamp(Microsecond, Some("Asia/Kolkata"))') as ts, value from ts_data;
@@ -1579,13 +1579,13 @@ second 2020-09-08T13:42:29
15791579

15801580
# test date trunc on different timestamp scalar types and ensure they are consistent
15811581
query P rowsort
1582-
SELECT DATE_TRUNC('second', arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(Second, None)')) as ts
1582+
SELECT DATE_TRUNC('second', arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(s)')) as ts
15831583
UNION ALL
1584-
SELECT DATE_TRUNC('second', arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(Nanosecond, None)')) as ts
1584+
SELECT DATE_TRUNC('second', arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(ns)')) as ts
15851585
UNION ALL
1586-
SELECT DATE_TRUNC('day', arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(Microsecond, None)')) as ts
1586+
SELECT DATE_TRUNC('day', arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(µs)')) as ts
15871587
UNION ALL
1588-
SELECT DATE_TRUNC('day', arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(Millisecond, None)')) as ts
1588+
SELECT DATE_TRUNC('day', arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(ms)')) as ts
15891589
----
15901590
2023-08-03T00:00:00
15911591
2023-08-03T00:00:00
@@ -2706,7 +2706,7 @@ drop table ts_utf8_data
27062706
##########
27072707

27082708
query B
2709-
select arrow_cast(now(), 'Date64') < arrow_cast('2022-02-02 02:02:02', 'Timestamp(Nanosecond, None)');
2709+
select arrow_cast(now(), 'Date64') < arrow_cast('2022-02-02 02:02:02', 'Timestamp(ns)');
27102710
----
27112711
false
27122712

@@ -3640,7 +3640,7 @@ select to_char(arrow_cast(12344567890000, 'Time64(Nanosecond)'), '%H-%M-%S %f')
36403640
03-25-44 567890000
36413641

36423642
query T
3643-
select to_char(arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(Second, None)'), '%d-%m-%Y %H-%M-%S')
3643+
select to_char(arrow_cast(TIMESTAMP '2023-08-03 14:38:50Z', 'Timestamp(s)'), '%d-%m-%Y %H-%M-%S')
36443644
----
36453645
03-08-2023 14-38-50
36463646

@@ -3732,7 +3732,7 @@ select to_unixtime(arrow_cast(to_timestamp('2023-01-14T01:01:30'), 'Timestamp(Se
37323732
1673638290
37333733

37343734
query I
3735-
select to_unixtime(arrow_cast(to_timestamp('2023-01-14T01:01:30'), 'Timestamp(Millisecond, None)'));
3735+
select to_unixtime(arrow_cast(to_timestamp('2023-01-14T01:01:30'), 'Timestamp(ms)'));
37363736
----
37373737
1673658090
37383738

@@ -4307,58 +4307,58 @@ SELECT CAST(CAST(one AS decimal(17,2)) AS timestamp(3)) AS a FROM (VALUES (1)) t
43074307
1970-01-01T00:00:00.001
43084308

43094309
query P
4310-
SELECT arrow_cast(CAST(1 AS decimal(17,2)), 'Timestamp(Nanosecond, None)') AS a UNION ALL
4311-
SELECT arrow_cast(CAST(one AS decimal(17,2)), 'Timestamp(Nanosecond, None)') AS a FROM (VALUES (1)) t(one);
4310+
SELECT arrow_cast(CAST(1 AS decimal(17,2)), 'Timestamp(ns)') AS a UNION ALL
4311+
SELECT arrow_cast(CAST(one AS decimal(17,2)), 'Timestamp(ns)') AS a FROM (VALUES (1)) t(one);
43124312
----
43134313
1970-01-01T00:00:00.000000001
43144314
1970-01-01T00:00:00.000000001
43154315

43164316
query P
4317-
SELECT arrow_cast(CAST(1 AS decimal(17,2)), 'Timestamp(Microsecond, None)') AS a UNION ALL
4318-
SELECT arrow_cast(CAST(one AS decimal(17,2)), 'Timestamp(Microsecond, None)') AS a FROM (VALUES (1)) t(one);
4317+
SELECT arrow_cast(CAST(1 AS decimal(17,2)), 'Timestamp(µs)') AS a UNION ALL
4318+
SELECT arrow_cast(CAST(one AS decimal(17,2)), 'Timestamp(µs)') AS a FROM (VALUES (1)) t(one);
43194319
----
43204320
1970-01-01T00:00:00.000001
43214321
1970-01-01T00:00:00.000001
43224322

43234323
query P
4324-
SELECT arrow_cast(CAST(1 AS decimal(17,2)), 'Timestamp(Millisecond, None)') AS a UNION ALL
4325-
SELECT arrow_cast(CAST(one AS decimal(17,2)), 'Timestamp(Millisecond, None)') AS a FROM (VALUES (1)) t(one);
4324+
SELECT arrow_cast(CAST(1 AS decimal(17,2)), 'Timestamp(ms)') AS a UNION ALL
4325+
SELECT arrow_cast(CAST(one AS decimal(17,2)), 'Timestamp(ms)') AS a FROM (VALUES (1)) t(one);
43264326
----
43274327
1970-01-01T00:00:00.001
43284328
1970-01-01T00:00:00.001
43294329

43304330
query P
4331-
SELECT arrow_cast(CAST(1 AS decimal(17,2)), 'Timestamp(Second, None)') AS a UNION ALL
4332-
SELECT arrow_cast(CAST(one AS decimal(17,2)), 'Timestamp(Second, None)') AS a FROM (VALUES (1)) t(one);
4331+
SELECT arrow_cast(CAST(1 AS decimal(17,2)), 'Timestamp(s)') AS a UNION ALL
4332+
SELECT arrow_cast(CAST(one AS decimal(17,2)), 'Timestamp(s)') AS a FROM (VALUES (1)) t(one);
43334333
----
43344334
1970-01-01T00:00:01
43354335
1970-01-01T00:00:01
43364336

43374337

43384338
query P
4339-
SELECT arrow_cast(CAST(1.123 AS decimal(17,3)), 'Timestamp(Nanosecond, None)') AS a UNION ALL
4340-
SELECT arrow_cast(CAST(one AS decimal(17,3)), 'Timestamp(Nanosecond, None)') AS a FROM (VALUES (1.123)) t(one);
4339+
SELECT arrow_cast(CAST(1.123 AS decimal(17,3)), 'Timestamp(ns)') AS a UNION ALL
4340+
SELECT arrow_cast(CAST(one AS decimal(17,3)), 'Timestamp(ns)') AS a FROM (VALUES (1.123)) t(one);
43414341
----
43424342
1970-01-01T00:00:00.000000001
43434343
1970-01-01T00:00:00.000000001
43444344

43454345
query P
4346-
SELECT arrow_cast(CAST(1.123 AS decimal(17,3)), 'Timestamp(Microsecond, None)') AS a UNION ALL
4347-
SELECT arrow_cast(CAST(one AS decimal(17,3)), 'Timestamp(Microsecond, None)') AS a FROM (VALUES (1.123)) t(one);
4346+
SELECT arrow_cast(CAST(1.123 AS decimal(17,3)), 'Timestamp(µs)') AS a UNION ALL
4347+
SELECT arrow_cast(CAST(one AS decimal(17,3)), 'Timestamp(µs)') AS a FROM (VALUES (1.123)) t(one);
43484348
----
43494349
1970-01-01T00:00:00.000001
43504350
1970-01-01T00:00:00.000001
43514351

43524352
query P
4353-
SELECT arrow_cast(CAST(1.123 AS decimal(17,3)), 'Timestamp(Millisecond, None)') AS a UNION ALL
4354-
SELECT arrow_cast(CAST(one AS decimal(17,3)), 'Timestamp(Millisecond, None)') AS a FROM (VALUES (1.123)) t(one);
4353+
SELECT arrow_cast(CAST(1.123 AS decimal(17,3)), 'Timestamp(ms)') AS a UNION ALL
4354+
SELECT arrow_cast(CAST(one AS decimal(17,3)), 'Timestamp(ms)') AS a FROM (VALUES (1.123)) t(one);
43554355
----
43564356
1970-01-01T00:00:00.001
43574357
1970-01-01T00:00:00.001
43584358

43594359
query P
4360-
SELECT arrow_cast(CAST(1.123 AS decimal(17,3)), 'Timestamp(Second, None)') AS a UNION ALL
4361-
SELECT arrow_cast(CAST(one AS decimal(17,3)), 'Timestamp(Second, None)') AS a FROM (VALUES (1.123)) t(one);
4360+
SELECT arrow_cast(CAST(1.123 AS decimal(17,3)), 'Timestamp(s)') AS a UNION ALL
4361+
SELECT arrow_cast(CAST(one AS decimal(17,3)), 'Timestamp(s)') AS a FROM (VALUES (1.123)) t(one);
43624362
----
43634363
1970-01-01T00:00:01
43644364
1970-01-01T00:00:01
@@ -4410,7 +4410,7 @@ FROM ts_data_micros_kolkata
44104410
## Casting between timestamp with and without timezone
44114411
##########
44124412

4413-
# Test casting from Timestamp(Nanosecond, Some("UTC")) to Timestamp(Nanosecond, None)
4413+
# Test casting from Timestamp(Nanosecond, Some("UTC")) to Timestamp(ns)
44144414
# Verifies that the underlying nanosecond values are preserved when removing timezone
44154415

44164416
# Verify input type
@@ -4421,13 +4421,13 @@ Timestamp(ns, "UTC")
44214421

44224422
# Verify output type after casting
44234423
query T
4424-
SELECT arrow_typeof(arrow_cast(arrow_cast(1, 'Timestamp(Nanosecond, Some("UTC"))'), 'Timestamp(Nanosecond, None)'));
4424+
SELECT arrow_typeof(arrow_cast(arrow_cast(1, 'Timestamp(Nanosecond, Some("UTC"))'), 'Timestamp(ns)'));
44254425
----
44264426
Timestamp(ns)
44274427

44284428
# Verify values are preserved when casting from timestamp with timezone to timestamp without timezone
44294429
query P rowsort
4430-
SELECT arrow_cast(column1, 'Timestamp(Nanosecond, None)')
4430+
SELECT arrow_cast(column1, 'Timestamp(ns)')
44314431
FROM (VALUES
44324432
(arrow_cast(1, 'Timestamp(Nanosecond, Some("UTC"))')),
44334433
(arrow_cast(2, 'Timestamp(Nanosecond, Some("UTC"))')),
@@ -4442,30 +4442,30 @@ FROM (VALUES
44424442
1970-01-01T00:00:00.000000004
44434443
1970-01-01T00:00:00.000000005
44444444

4445-
# Test casting from Timestamp(Nanosecond, None) to Timestamp(Nanosecond, Some("UTC"))
4445+
# Test casting from Timestamp(ns) to Timestamp(Nanosecond, Some("UTC"))
44464446
# Verifies that the underlying nanosecond values are preserved when adding timezone
44474447

44484448
# Verify input type
44494449
query T
4450-
SELECT arrow_typeof(arrow_cast(1, 'Timestamp(Nanosecond, None)'));
4450+
SELECT arrow_typeof(arrow_cast(1, 'Timestamp(ns)'));
44514451
----
44524452
Timestamp(ns)
44534453

44544454
# Verify output type after casting
44554455
query T
4456-
SELECT arrow_typeof(arrow_cast(arrow_cast(1, 'Timestamp(Nanosecond, None)'), 'Timestamp(Nanosecond, Some("UTC"))'));
4456+
SELECT arrow_typeof(arrow_cast(arrow_cast(1, 'Timestamp(ns)'), 'Timestamp(Nanosecond, Some("UTC"))'));
44574457
----
44584458
Timestamp(ns, "UTC")
44594459

44604460
# Verify values are preserved when casting from timestamp without timezone to timestamp with timezone
44614461
query P rowsort
44624462
SELECT arrow_cast(column1, 'Timestamp(Nanosecond, Some("UTC"))')
44634463
FROM (VALUES
4464-
(arrow_cast(1, 'Timestamp(Nanosecond, None)')),
4465-
(arrow_cast(2, 'Timestamp(Nanosecond, None)')),
4466-
(arrow_cast(3, 'Timestamp(Nanosecond, None)')),
4467-
(arrow_cast(4, 'Timestamp(Nanosecond, None)')),
4468-
(arrow_cast(5, 'Timestamp(Nanosecond, None)'))
4464+
(arrow_cast(1, 'Timestamp(ns)')),
4465+
(arrow_cast(2, 'Timestamp(ns)')),
4466+
(arrow_cast(3, 'Timestamp(ns)')),
4467+
(arrow_cast(4, 'Timestamp(ns)')),
4468+
(arrow_cast(5, 'Timestamp(ns)'))
44694469
) t;
44704470
----
44714471
1970-01-01T00:00:00.000000001Z

datafusion/sqllogictest/test_files/dictionary.slt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ SELECT
3636
arrow_cast(column3, 'Utf8') as f2,
3737
arrow_cast(column4, 'Utf8') as f3,
3838
arrow_cast(column5, 'Float64') as f4,
39-
arrow_cast(column6, 'Timestamp(Nanosecond, None)') as time
39+
arrow_cast(column6, 'Timestamp(ns)') as time
4040
FROM (
4141
VALUES
4242
-- equivalent to the following line protocol data
@@ -111,7 +111,7 @@ SELECT
111111
arrow_cast(column1, 'Dictionary(Int32, Utf8)') as type,
112112
arrow_cast(column2, 'Dictionary(Int32, Utf8)') as tag_id,
113113
arrow_cast(column3, 'Float64') as f5,
114-
arrow_cast(column4, 'Timestamp(Nanosecond, None)') as time
114+
arrow_cast(column4, 'Timestamp(ns)') as time
115115
FROM (
116116
VALUES
117117
-- equivalent to the following line protocol data

0 commit comments

Comments
 (0)