hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhuoluo (Clark) Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2615) CTAS with literal NULL creates VOID type
Date Tue, 04 Jun 2013 07:36:22 GMT

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

Zhuoluo (Clark) Yang commented on HIVE-2615:
--------------------------------------------

https://reviews.apache.org/r/11622/
                
> CTAS with literal NULL creates VOID type
> ----------------------------------------
>
>                 Key: HIVE-2615
>                 URL: https://issues.apache.org/jira/browse/HIVE-2615
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: David Phillips
>            Assignee: Zhuoluo (Clark) Yang
>         Attachments: HIVE-2615.1.patch
>
>
> Create the table with a column that always contains NULL:
> {quote}
> hive> create table bad as select 1 x, null z from dual;     
> {quote}
> Because there's no type, Hive gives it the VOID type:
> {quote}
> hive> describe bad;
> OK
> x	int	
> z	void	
> {quote}
> This seems weird, because AFAIK, there is no normal way to create a column of type VOID.
 The problem is that the table can't be queried:
> {quote}
> hive> select * from bad;
> OK
> Failed with exception java.io.IOException:java.lang.RuntimeException: Internal error:
no LazyObject for VOID
> {quote}
> Worse, even if you don't select that field, the query fails at runtime:
> {quote}
> hive> select x from bad;
> ...
> FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message