apache / datafusion-comet

Apache DataFusion Comet Spark Accelerator

Home Page:https://datafusion.apache.org/comet

Repository from Github https://github.comapache/datafusion-cometRepository from Github https://github.comapache/datafusion-comet

Make decimal to string cast fully compatible with Spark

andygrove opened this issue · comments

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