hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Zhang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-734) problem in dealing with null
Date Sat, 08 Aug 2009 03:58:14 GMT

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

Ning Zhang commented on HIVE-734:
---------------------------------

In the failing query, there is no column corresponding to null (select null from tt), so the
semantic analyzer doesn't know the type of the NULL, therefore it is VOID type. That's why
JavaVoidObjectInspector needs to be created. It is the similar that in (select 2 from tt),
An JavaIntegerObjectInspector is needed for the constant 2. 

> problem in dealing with null
> ----------------------------
>
>                 Key: HIVE-734
>                 URL: https://issues.apache.org/jira/browse/HIVE-734
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Zheng Shao
>            Assignee: Ning Zhang
>
> This command fails with the following error:
> {code}
> hive/bin/hive -e "INSERT OVERWRITE LOCAL DIRECTORY 'abc' select null from zshao_tt"
> FAILED: Error in semantic analysis:
> java.lang.RuntimeException: Internal error: Cannot find ObjectInspector for VOID
> {code}
> When 'null' is replaced by '' it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message