You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Lefty Leverenz (JIRA)" <ji...@apache.org> on 2014/12/16 09:58:13 UTC

[jira] [Commented] (HIVE-9107) Non-lowercase field names in structs causes NullPointerException

    [ https://issues.apache.org/jira/browse/HIVE-9107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247953#comment-14247953 ] 

Lefty Leverenz commented on HIVE-9107:
--------------------------------------

Is this related to HIVE-8386 or HIVE-8870 (also HIVE-6198)?

> Non-lowercase field names in structs causes NullPointerException
> ----------------------------------------------------------------
>
>                 Key: HIVE-9107
>                 URL: https://issues.apache.org/jira/browse/HIVE-9107
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.1
>            Reporter: Jim Pivarski
>
> If an HQL query references a struct field with mixed or upper case, Hive throws a NullPointerException instead of giving a better error message or simply lower-casing the name.
> For example, if I have a struct in column mystruct with a field named myfield, a query like
> select mystruct.MyField from tablename;
> passes the local initialize (it submits an M-R job) but the remote initialize jobs throw NullPointerExceptions.  The exception is on line 61 of org.apache.hadoop.hive.ql.exec.ExprNodeFieldEvaluator, which is right after the field name is extracted and not forced to be lower-case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)