-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify conditional catalyst expressions generated by udf-compiler #5315
Simplify conditional catalyst expressions generated by udf-compiler #5315
Conversation
udf-compiler/src/main/scala/com/nvidia/spark/udf/CatalystExpressionBuilder.scala
Show resolved
Hide resolved
633771a
to
4afaaf8
Compare
build |
udf-compiler/src/main/scala/com/nvidia/spark/udf/CatalystExpressionBuilder.scala
Outdated
Show resolved
Hide resolved
udf-compiler/src/main/scala/com/nvidia/spark/udf/CatalystExpressionBuilder.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than @gerashegalov's suggestions.
if (c) true else false => c if (c) false else true => !c Signed-off-by: Sean Lee <selee@nvidia.com>
4afaaf8
to
bba7ec3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@seanprime7 please do not force-push once the PR is being reviewed. It often orphans the reviewer comments and makes re-reviews more difficult. Commits are already squashed when merged, so PRs don't need to optimize their commits before merging. |
copy that |
build |
if (c) true else false => c
if (c) false else true => !c
Signed-off-by: Sean Lee selee@nvidia.com
Resolves #3985