AP24110011695 opened a new pull request, #4430: URL: https://github.com/apache/iceberg-python/pull/4430
## What's changed `to_human_string` for decimals falls through to plain `str()`, which renders small magnitudes in scientific notation — a decimal partition value of `0.00000012` surfaces as `1.2E-7` in the partitions inspect table's lower/upper bound columns (`_partition_summaries_to_rows` renders bounds via `field.transform.to_human_string`), while #4420 established plain notation for decimal JSON values with the exact same `str()` hazard. This registers a `Decimal` override on the human-string helper using the same rule as the JSON path: plain f-notation when the exponent is zero or negative, `str()` otherwise (which keeps the negative-scale scientific convention the conversions docstring documents). The human-string helper is what the identity transform and the inspect path route through. ## Test Four new parametrize cases in `test_identity_human_string` (small magnitude, zero, negative small magnitude, and a 38,18 case) — verified failing-first on main (`1.2E-7`/`0E-8` renderings) and passing with the override. The 17 pyarrow-parametrized failures in this file are the pristine-main environment baseline on this machine (verified by stash A/B: identical set, unchanged by this PR). AI disclosure: drafted with AI assistance, verified locally by running the failing-first cycle and an end-to-end write + `inspect.partitions()` probe. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
