Skip to content
Snippets Groups Projects
Commit 886f880d authored by Takuya UESHIN's avatar Takuya UESHIN Committed by Reynold Xin
Browse files

[SPARK-18585][SQL] Use `ev.isNull = "false"` if possible for Janino to have a chance to optimize.


## What changes were proposed in this pull request?

Janino can optimize `true ? a : b` into `a` or `false ? a : b` into `b`, or if/else with literal condition, so we should use literal as `ev.isNull` if possible.

## How was this patch tested?

Existing tests.

Author: Takuya UESHIN <ueshin@happy-camper.st>

Closes #16008 from ueshin/issues/SPARK-18585.

(cherry picked from commit 87141622)
Signed-off-by: default avatarReynold Xin <rxin@databricks.com>
parent 6b77889e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment