Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/12120#issuecomment-204765136
My original goal was for this to be able to stack with other optimizations
to simplify expressions like
```
Cast(
CaseWhen(
Seq(Not(EqualTo(UnresolvedAttribute("age"), Literal(4))) ->
Literal(0)),
Literal(1)
),
BooleanType)
```
since those types of overly-complicated expressions were cropping up in my
closure -> expression extractor. However, given the concerns over code size
plus weird Java nullability semantics I'm thinking that I may want to write
some customized simplification rules which only run on the extracted
expressions rather than all expressions. Therefore, I'll close this for now.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]