-
Notifications
You must be signed in to change notification settings - Fork 375
fix: render float and double Iceberg partition values like iceberg-java #5840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
andygrove
merged 6 commits into
apache:main
from
andygrove:fix/iceberg-float-partition-path
Sep 15, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e6823e5
fix: render float and double Iceberg partition values like iceberg-java
andygrove 649ea49
refactor: tighten the Java float formatter after review
andygrove 475466b
Merge branch 'main' into fix/iceberg-float-partition-path
andygrove 5b70705
Merge branch 'main' into fix/iceberg-float-partition-path
andygrove 8a8a185
refactor: seal JavaFloatString and export the owned float renderer
andygrove 24df0f5
Merge branch 'main' into fix/iceberg-float-partition-path
andygrove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 27 assertions pin
write_java_float_string, which lives inspark-expr, fromcore-- and most of them already have Spark-verified coverage:numeric.rs::test_spark_cast_float_min_value_to_stringpins1.4E-45and4.9E-324for both signs.cast_array_to_string.sql:30-31,60-61pins3.4028235E38,1.4E-45,1.7976931348623157E308,4.9E-324,NaN,+/-Infinity.cast_double_to_string.sql:23-36pins-0.0,0.0,+/-1.5,NaN,+/-Infinity,1.0E20,0.001.What is genuinely new is the plain-notation window (
9.99E-4,9999999.0,1.0E7),f64::MAX,f64::MIN_POSITIVE, and float coverage in general. Those would be better as rows incast_double_to_string.sqlplus a newcast_float_to_string.sql:checkSparkAnswerAndOperatorcompares against the Spark running in CI rather than against strings transcribed from a JDK, which matters here because the renderer deliberately tracks JDK 19+ shortest-round-trip output while the doc calls it pre-JDK-19.Then two smoke assertions here are enough to prove the two new match arms are wired.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed on the SQL file tests. Deferred to #5968 so this fix can land; the core assertions stay until the Spark-checked rows exist.