Github user viirya commented on the pull request:
https://github.com/apache/spark/pull/4940#issuecomment-81130668
I think it is because the codes you refer to access the element directly
with array index. If the ordinsl is not valid, runtime exception will be
thrown. But for the generated codes, it uses many `if` condition to determine
the element to access. So if the ordinal is not valide, it needs to throw an
exception. That is why it originally calls `accessorFailure` after all cases
are not met.
---
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]