Commit cfeb551
test(reader): cover overflowed-zone null path in ZoneReducer
Add an overflowed-zone case to ZoneReducerTest: zone maps enabled but one
I64 chunk's SUM overflows (Math.addExact drops it), so the zone-map table
is present yet a zone carries no usable sum — exercising the fold's bail
path distinctly from the absent-table case.
Also add WriteOptions.withZoneMaps(boolean), mirroring withGlobalDict /
withZstd, so the no-zone-map test reads as
WriteOptions.defaults().withZoneMaps(false) instead of a brittle
positional constructor call.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 70191f1 commit cfeb551
2 files changed
Lines changed: 30 additions & 1 deletion
File tree
- writer/src
- main/java/io/github/dfa1/vortex/writer
- test/java/io/github/dfa1/vortex/writer
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
98 | 119 | | |
0 commit comments