vaidik787 commented on PR #427:
URL: https://github.com/apache/datafusion-spark/pull/427#issuecomment-7301907061

   Thanks both. Checked against `java.util.Formatter` (Java 21):
   
   - `%#g` / `%#G`: Java throws `FormatFlagsConversionMismatchException` (also 
for `%#.3g`), so Spark should reject the flag. With this PR `%#g` of `1e10` 
prints `1.e+10` instead of `1e+10.`; both are wrong, and I did not change `%g` 
handling here. I'll open an issue to reject `#` with `%g`/`%G`.
   - `%#.0e` of `9.5`: Java gives `1.e+01`; this code gives `10.e+00` because 
of the mantissa carry bug in #433 (fix in #435), so I did not add a record that 
would fail until that lands.
   - I'll add the `0.0` / `-0.0` records for `%#.0e` and `%#.0E` once #416 
merges, and will track them in an issue.


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