datafusion-comet icon indicating copy to clipboard operation
datafusion-comet copied to clipboard

Add ANSI support for Add

Open andygrove opened this issue 1 year ago • 3 comments

What is the problem the feature request solves?

Spark has specific handling of overflows when ANSI mode is enabled and we need to add the same in Comet.

Describe the potential solution

No response

Additional context

No response

andygrove avatar Jun 06 '24 15:06 andygrove

I want to try this one!

planga82 avatar Jun 07 '24 18:06 planga82

Hello @planga82

Just wanted to check in and see if you're still working on this task. I'm actually working on the subtraction variant of the same task, and I thought it might be helpful to chat about our approaches. There's a good chance one of our solutions could build upon the other!

Let me know if you're available to discuss sometime.

Here is the Draft PR: #593

dharanad avatar Jun 24 '24 13:06 dharanad

Hello @dharanad Yes, I'm working on it, but I don't have much time, so I'm going slow. The structure of the solution I'm working on is quite similar to yours, basically a wrapper. In Spark, the implementation uses the Java Math.addExact function. Basically, I'm trying to reproduce that implementation using Datafusion functions. Thanks for sharing your PR, I will keep an eye on your progress to adapt my solution to be compatible with your code, and I will create a PR when I achive a working solution.

planga82 avatar Jun 25 '24 22:06 planga82

@andygrove This can be closed now since https://github.com/apache/datafusion-comet/pull/2136/ is merged to main

coderfender avatar Sep 28 '25 04:09 coderfender