apache / datafusion-comet

Apache DataFusion Comet Spark Accelerator
https://datafusion.apache.org/comet
Apache License 2.0
447 stars 100 forks source link

feat: Implement Spark-compatible CAST float/double to string #346

Closed mattharder91 closed 2 weeks ago

mattharder91 commented 2 weeks ago

Which issue does this PR close?

Closes #312

Rationale for this change

Improve compatibility with Apache Spark

What changes are included in this PR?

How are these changes tested?

Further Considerations

A potential problem could be there for denormalized precision values.

Scalas Double.MinPositiveValue is 4.9E-324 the denormalized value and parses correctly to 4.9E-324 while rust outputs 5E-324.