Implement Spark-compatible CAST float/double to string #312
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
What is the problem the feature request solves?
We currently delegate to DataFusion when casting float/double to string and there are some differences in behavior compared to Spark.
Infinity
and-Infinity
and DataFusion usesinf
and-inf
E
for exponent and DataFusion usese
There can also be differences in formatting but where the values are semantically equivalent. For example, for the input
1.0499721536516571E-4
:Spark produces
"1.0499721536516571E-4"
DataFusion produces:
"0.00010499721536516571"
We should create a compatibility guide and include this information.
Here are some suggested values to test:
Describe the potential solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: