I've opened a PR for this: https://github.com/apache/iceberg/pull/19279


It changes the float and double checks in SingleValueParser.fromJson from
isFloatingPointNumber() to isNumber(), so whole-number literals such as 0
or -1 are accepted. Serialization is unchanged: values are still written
with a fractional part (for example 0.0). The PR also adds whole-number
cases for float and double to TestSingleValueParser#testValidDefaults.

Thanks,
Zhuo Wang

Reply via email to