Github user liancheng commented on the issue:
https://github.com/apache/spark/pull/16184
LGTM, thanks for working on this!
I think the problem is that we generate a foldable predicate (`lit(null)`)
during optimization phase but fail to fold it. Ideally, the optimizer should
fold `IsNotNull($"_1") && lit(null)` into a `lit(false)`. But it's still good
to check for foldable predicates at planning phase.
Merging this to master and branch-2.1.
---
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]