Github user dongjoon-hyun commented on the pull request:
https://github.com/apache/spark/pull/12340#issuecomment-210609296
It's because that is the real behavior of `assert_null`. When I used
implicit type cast yesterday. It works differently with Hive assert_null. For
example,
```
hive> select assert_true(1);
OK
NULL
hive> select assert_true(0);
OK
Failed with exception
java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException:
ASSERT_TRUE(): assertion failed.
Time taken: 0.062 seconds
```
I didn't have the old code, but maybe what you mean is the following, right?
```
hive> select not(0);
FAILED: ClassCastException
org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableConstantIntObjectInspector
cannot be cast to
org.apache.hadoop.hive.serde2.objectinspector.primitive.BooleanObjectInspector
```
---
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]