hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ning Zhang (JIRA)" <>
Subject [jira] Commented: (HIVE-734) problem in dealing with null
Date Fri, 07 Aug 2009 01:37:14 GMT


Ning Zhang commented on HIVE-734:

The error is threw during semantic analysis where the parser try to instantiate an ObjectInspector
for type "void" (corresponding to null). 

The following similar query succeeded:

select 2 from zshao_tt;

since the semantic analyzer is able to deduct type (int) from the constant 2. 

Since null can also be treated as a constant, I think we need to write an ObjectInspector
for its type (void) too. And the object inspector will always return null for each row. 

> problem in dealing with null
> ----------------------------
>                 Key: HIVE-734
>                 URL:
>             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.

View raw message