apache / datafusion-comet

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

Make decimal to string cast fully compatible with Spark #1068

Open andygrove opened 1 week ago

andygrove commented 1 week ago

What is the problem the feature request solves?

When casting a Decimal(18,10) with value 0 to a string, Spark produces 0E-10, but Comet produces 0.000000000000000000 (18 zeroes after the decimal place).

See test("cast StructType to StringType") in CometCastSuite for more details.

Describe the potential solution

No response

Additional context

No response