Github user EntilZha commented on the pull request:
https://github.com/apache/spark/pull/7580#issuecomment-124214142
Based on Hive behavior of this:
```sql
# Returns false
array_contains(array(1, 0), array(1, null)[1])
```
It would seem that this should not use `ExpectsInputTypes` then. My
understanding is that if it were used, then `null` would be implicitly cast to
the `defaultConcretType`. So in the example above, it would be implicitly cast
to `0`, making `array_contains` return `true` instead of `false` as hive does.
This seem correct?
---
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]