Repository navigation
Commit 60037f5
committed
test: make the low-end Iceberg rounding row reach the pre-epoch adjustment
i64::MIN + 775_807 ends in 999999 but lies 71_945_999_999 micros into its day and
3_545_999_999 into its hour, so a plain floor gave the same four values as the i64::MIN row.
Use -290307-01-01T00:00:00.999999 instead, 999999 micros into the lowest year boundary in range,
where all four transforms take the unit before. The expected values come from DateTimeUtil and
Transforms in Iceberg 1.5.2, 1.8.1, 1.10.0 and 1.11.0.1 parent d9d943c commit 60037f5
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
364 | 365 | | |
365 | | - | |
| 366 | + | |
366 | 367 | | |
367 | 368 | | |
368 | | - | |
369 | | - | |
| 369 | + | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
0 commit comments