NVIDIA/spark-rapids-jni

[FEA][Performance] Merge multiple "copy_if_else" for "case when" in the case of multiple branches

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.
copy_if_else is an expensive operation (shown in below nsys trace) and it happens in the case of "case when". And there exists some opportunities we could avoid multiple copy_if_else and consolidate them into a single one.
image

Describe the solution you'd like
Consolidating multiple copy_if_else into a single one in case when without side effect case.

JNI PR: #2079