Github user huaxingao commented on the issue:
https://github.com/apache/spark/pull/22788
I have a question regarding the test failure in
```ExpressionTypeCheckingSuite```. Most of the tests in this suite failed after
I change ```UnresolvedAttribute.sql = UnresolvedAttribute.name```. For example,
```
test("check types for unary arithmetic") {
assertError(BitwiseNot('stringField), "requires integral type")
}
```
The test failed with
```
"cannot resolve '~`stringField`' due to data type mismatch: argument 1
requires integral
type, however, '`stringField`' is of string type.;" did not contain
"cannot resolve
'~stringField' due to data type mismatch:"
```
It seems that the root cause of the failure is that
```UnresolveAttribute.sql``` doesn't match with ```AttributeReference.sql```
any more after my fix. I am in doubt if it is correct to make
```UnresolvedAttribute.sql ``` the same as ``` UnresolvedAttribute.name```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]