I agree with Zhuo and Andrei that we should allow any JSON number. On Wed, Dec 2, 2026 at 6:38 PM Zhuo Wang <[email protected]> wrote:
> 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 > >
