Repository navigation
Commit 6603fcf
committed
Emit Decimal32/Decimal64 from the Arrow exporter (on DataFusion 54)
Rebased onto the DataFusion 54 upgrade branch (adamg/df-54) to evaluate
narrow decimal export against DataFusion 54.
Maps decimals to the smallest Arrow width that fits the precision:
Decimal32 for <=9, Decimal64 for <=18, Decimal128 for <=38, else
Decimal256. The Arrow executor already handles all four widths.
Note: DataFusion 54's decimal SUM/AVG accumulators are unchanged from 53
(branch-54 keeps SUM(Decimal32) -> Decimal32(min(9, p+10), s) in i32), so
aggregating inferred narrow decimals is still expected to overflow
(e.g. TPC-DS Q1). This branch is for evaluating that behavior on 54.
Signed-off-by: Joe Isaacs <[email protected]>1 parent 6faea70 commit 6603fcf
1 file changed
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
306 | 305 | | |
307 | | - | |
| 306 | + | |
308 | 307 | | |
309 | 308 | | |
310 | 309 | | |
| |||
450 | 449 | | |
451 | 450 | | |
452 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
453 | 471 | | |
454 | 472 | | |
455 | 473 | | |
| |||
0 commit comments