Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions docs/source/user-guide/latest/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,6 @@ Cast operations in Comet fall into three levels of support:
Spark.
- **N/A**: Spark does not support this cast.

### Negative Zero

When casting floating-point values to strings, Spark normalizes negative zero (`-0.0`) to `"0.0"`, but Comet
may produce `"-0.0"`. Since negative zero and positive zero are semantically equivalent (`-0.0 == 0.0` is true
in IEEE 754), this difference is unlikely to affect real-world results. See
[#1036](https://github.com/apache/datafusion-comet/issues/1036) for more details.

### Legacy Mode

<!--BEGIN:CAST_LEGACY_TABLE-->
Expand Down
6 changes: 6 additions & 0 deletions spark/src/test/scala/org/apache/comet/CometCastSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ class CometCastSuite extends CometTestBase with AdaptiveSparkPlanHelper {
-1.0f,
Short.MinValue.toFloat,
Short.MaxValue.toFloat,
-0.0f,
0.0f) ++
Range(0, dataSize).map(_ => r.nextFloat())
castTest(withNulls(values).toDF("a"), DataTypes.StringType)
Expand Down Expand Up @@ -558,6 +559,11 @@ class CometCastSuite extends CometTestBase with AdaptiveSparkPlanHelper {
Double.NaN,
Double.PositiveInfinity,
Double.NegativeInfinity,
1.0d,
-1.0d,
Int.MinValue.toDouble,
Int.MaxValue.toDouble,
-0.0d,
0.0d) ++
Range(0, dataSize).map(_ => r.nextDouble())
castTest(withNulls(values).toDF("a"), DataTypes.StringType)
Expand Down
Loading