You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In #3849 we implemented special handling in CASE WHEN for expressions with side-effects but this relies on all expressions with side-effects overriding the hasSideEffects method and we have not done this for all expressions (see #5023 for one example).
We should audit all expressions and implement hasSideEffects where appropriate.
Candidates:
GpuGetArrayItem -
GpuElementAt
GpuGetMapValue
GpuUnaryMinus
GpuAbs
GpuSum
Steps/Code to reproduce bug
N/A
Expected behavior
Conditional expressions such as IF and CASE should not fail due to expressions with side-effects being evaluated and throwing exceptions.
Environment details (please complete the following information)
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
I just did a test with pure spark 3.2.0 and I can confirm that case/when does not stop a SUM in ansi from throwing an exception if the case/when is outside of the SUM.
Describe the bug
In #3849 we implemented special handling in CASE WHEN for expressions with side-effects but this relies on all expressions with side-effects overriding the
hasSideEffects
method and we have not done this for all expressions (see #5023 for one example).We should audit all expressions and implement
hasSideEffects
where appropriate.Candidates:
Steps/Code to reproduce bug
N/A
Expected behavior
Conditional expressions such as
IF
andCASE
should not fail due to expressions with side-effects being evaluated and throwing exceptions.Environment details (please complete the following information)
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: