Github user chenghao-intel commented on the pull request:
https://github.com/apache/spark/pull/3110#issuecomment-61921813
Yes, the tricky thing is the existed table with field in type of `array`,
the field always be considered as `ArrayType(nullable=true)`, so a `Cast` node
will be inserted when trying to insert a `constant not null array`(which
nullable = false) into it. However, the expression `Cast` doesn't support
complicated data type, that's why exception raised.
One possible change is adding an `equals` method for `ArrayType`, which
ignores the `nullable` for the equality comparison. What do you think?
---
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]