Commit 9c68e58
fix: oracle formats UINT_32/UINT_64 Parquet columns as unsigned (#253)
INT32/INT64 columns with a UINT_32/UINT_64 Parquet logical-type annotation
were formatted using Integer.toString/Long.toString (signed), which diverges
from the unsigned U32/U64 representation stored in the Vortex file.
Values above Integer.MAX_VALUE (e.g. total_boosters in
covid-world-vaccination-progress) produced the wrong sign.
Fix: detect LogicalType.IntType with isSigned()=false and switch to
Integer.toUnsignedString / Long.toUnsignedString in oracleCell.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 246122a commit 9c68e58
3 files changed
Lines changed: 10 additions & 3 deletions
File tree
- integration/src/test
- java/io/github/dfa1/vortex/integration
- resources/raincloud
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
| 236 | + | |
231 | 237 | | |
232 | | - | |
233 | | - | |
| 238 | + | |
| 239 | + | |
234 | 240 | | |
235 | 241 | | |
236 | 242 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments