Skip to content

Commit 51e5407

Browse files
committed
Make tests happy
1 parent 8d6e797 commit 51e5407

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

crates/iceberg/src/transform/temporal.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,15 +2463,15 @@ mod test {
24632463
&year,
24642464
Datum::int(1970 - super::UNIX_EPOCH_YEAR),
24652465
);
2466-
test_timestamp_and_tz_transform("1969-01-01 00:00:00.00", &year, Datum::int(-1));
2466+
test_timestamp_and_tz_transform("1969-01-01T00:00:00.000000", &year, Datum::int(-1));
24672467

24682468
// Test TimestampNanosecond
24692469
test_timestamp_ns_and_tz_transform_using_i64(
24702470
186280000000,
24712471
&year,
24722472
Datum::int(1970 - super::UNIX_EPOCH_YEAR),
24732473
);
2474-
test_timestamp_ns_and_tz_transform("1969-01-01 00:00:00.00", &year, Datum::int(-1));
2474+
test_timestamp_ns_and_tz_transform("1969-01-01T00:00:00.000000", &year, Datum::int(-1));
24752475
}
24762476

24772477
#[test]
@@ -2562,21 +2562,21 @@ mod test {
25622562
&month,
25632563
Datum::int((1970 - super::UNIX_EPOCH_YEAR) * 12),
25642564
);
2565-
test_timestamp_and_tz_transform("1969-12-01 23:00:00.00", &month, Datum::int(-1));
2566-
test_timestamp_and_tz_transform("2017-12-01 00:00:00.00", &month, Datum::int(575));
2567-
test_timestamp_and_tz_transform("1970-01-01 00:00:00.00", &month, Datum::int(0));
2568-
test_timestamp_and_tz_transform("1969-12-31 00:00:00.00", &month, Datum::int(-1));
2565+
test_timestamp_and_tz_transform("1969-12-01T23:00:00.000000", &month, Datum::int(-1));
2566+
test_timestamp_and_tz_transform("2017-12-01T00:00:00.000000", &month, Datum::int(575));
2567+
test_timestamp_and_tz_transform("1970-01-01T00:00:00.000000", &month, Datum::int(0));
2568+
test_timestamp_and_tz_transform("1969-12-31T00:00:00.000000", &month, Datum::int(-1));
25692569

25702570
// Test TimestampNanosecond
25712571
test_timestamp_ns_and_tz_transform_using_i64(
25722572
186280000000,
25732573
&month,
25742574
Datum::int((1970 - super::UNIX_EPOCH_YEAR) * 12),
25752575
);
2576-
test_timestamp_ns_and_tz_transform("1969-12-01 23:00:00.00", &month, Datum::int(-1));
2577-
test_timestamp_ns_and_tz_transform("2017-12-01 00:00:00.00", &month, Datum::int(575));
2578-
test_timestamp_ns_and_tz_transform("1970-01-01 00:00:00.00", &month, Datum::int(0));
2579-
test_timestamp_ns_and_tz_transform("1969-12-31 00:00:00.00", &month, Datum::int(-1));
2576+
test_timestamp_ns_and_tz_transform("1969-12-01T23:00:00.000000", &month, Datum::int(-1));
2577+
test_timestamp_ns_and_tz_transform("2017-12-01T00:00:00.000000", &month, Datum::int(575));
2578+
test_timestamp_ns_and_tz_transform("1970-01-01T00:00:00.000000", &month, Datum::int(0));
2579+
test_timestamp_ns_and_tz_transform("1969-12-31T00:00:00.000000", &month, Datum::int(-1));
25802580
}
25812581

25822582
#[test]
@@ -2667,12 +2667,12 @@ mod test {
26672667
// Test TimestampMicrosecond
26682668
test_timestamp_and_tz_transform_using_i64(1512151975038194, &day, Datum::date(17501));
26692669
test_timestamp_and_tz_transform_using_i64(-115200000000, &day, Datum::date(-2));
2670-
test_timestamp_and_tz_transform("2017-12-01 10:30:42.123", &day, Datum::date(17501));
2670+
test_timestamp_and_tz_transform("2017-12-01T10:30:42.123000", &day, Datum::date(17501));
26712671

26722672
// Test TimestampNanosecond
26732673
test_timestamp_ns_and_tz_transform_using_i64(1512151975038194, &day, Datum::date(17));
26742674
test_timestamp_ns_and_tz_transform_using_i64(-115200000000, &day, Datum::date(-1));
2675-
test_timestamp_ns_and_tz_transform("2017-12-01 10:30:42.123", &day, Datum::date(17501));
2675+
test_timestamp_ns_and_tz_transform("2017-12-01T10:30:42.123000", &day, Datum::date(17501));
26762676
}
26772677

26782678
#[test]

0 commit comments

Comments
 (0)