Repository navigation
Commit f26689a
authored
Write decimal default values in plain notation (#4420)
Write decimal JSON single values in plain notation
str() renders a Decimal with a small magnitude in scientific notation, so a
decimal(20, 8) default of zero was written to table metadata as 0E-8. The spec
uses the digits after the decimal point to carry the scale, and Java writes
toPlainString() for a non-negative scale.1 parent 8f6ea30 commit f26689a
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
527 | 531 | | |
528 | 532 | | |
529 | 533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
606 | 609 | | |
607 | 610 | | |
608 | 611 | | |
| |||
0 commit comments