datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Optimization for CASE WHEN for protecting against divide by zero

Open irenjj opened this issue 1 year ago • 0 comments

Which issue does this PR close?

closes https://github.com/apache/datafusion/issues/11570

Rationale for this change

What changes are included in this PR?

Add an optimization opration for case like:

CASE WHEN y > 0 THEN x / y ELSE null END

Simplify the check by div_checked.

Are these changes tested?

Are there any user-facing changes?

irenjj avatar Aug 18 '24 13:08 irenjj