laserninja opened a new pull request, #18120:
URL: https://github.com/apache/iceberg/pull/18120

   Fixes #18119.
   
   A float or double default represented as JSON `1` is currently rejected, 
even though `1.0` is accepted and the specification permits a JSON number. 
Accept numeric nodes in the floating-point cases of `SingleValueParser`, 
preserving existing conversion and nonnumeric rejection behavior.
   
   Schema-level tests cover both initial and write defaults for float/double 
with zero, positive, negative, larger integer, decimal, and exponent forms. 
Additional tests retain rejection of strings, booleans, arrays, and objects.
   
   Validation on JDK 17: the integral-default cases failed before the fix; 
schema, single-value, content-file, data-task, and expression parser tests 
passed afterward. Core formatting, checkstyle, and `revapi` checks passed.
   
   ---
   **AI Disclosure**
   - Model: GPT-6
   - Platform/Tool: Codex
   - Human Oversight: unreviewed
   - Prompt Summary: Reproduce and fix numeric JSON floating-point default 
parsing, add schema regressions, and create an issue and PR.
   


-- 
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]

Reply via email to