Skip to content

Commit

Permalink
Document exponent differences when casting floating point to string (N…
Browse files Browse the repository at this point in the history
…VIDIA#4270)

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
  • Loading branch information
jlowe authored and Chong Gao committed Dec 6, 2021
1 parent dcc3e4d commit 840f202
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,8 @@ This configuration setting is ignored when using Spark versions prior to 3.1.0.
### Float to String

The GPU will use different precision than Java's toString method when converting floating-point data
types to strings and this can produce results that differ from the default behavior in Spark.
types to strings. The GPU uses a lowercase `e` prefix for an exponent while Spark uses uppercase
`E`. As a result the computed string can differ from the default behavior in Spark.

To enable this operation on the GPU, set
[`spark.rapids.sql.castFloatToString.enabled`](configs.md#sql.castFloatToString.enabled) to `true`.
Expand Down

0 comments on commit 840f202

Please sign in to comment.