hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Phillips (Created) (JIRA)" <>
Subject [jira] [Created] (HIVE-2615) CTAS with literal NULL creates VOID type
Date Wed, 30 Nov 2011 00:45:46 GMT
CTAS with literal NULL creates VOID type

                 Key: HIVE-2615
             Project: Hive
          Issue Type: Bug
            Reporter: David Phillips

Create the table with a column that always contains NULL:

hive> create table bad as select 1 x, null z from dual;     

Because there's no type, Hive gives it the VOID type:

hive> describe bad;
x	int	
z	void	

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:

hive> select * from bad;
Failed with exception Internal error: no LazyObject
for VOID

Worse, even if you don't select that field, the query fails at runtime:

hive> select x from bad;
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message