hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-8642) Hive stack() UDTF Doesn't Support NULL Insert Values
Date Thu, 30 Oct 2014 01:56:33 GMT

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

Navis commented on HIVE-8642:
-----------------------------

[~nkelkar] I think it's possible to implement type inference from target table/partition.
SemanticAnalyzer#genConversionOps expected to do that but it's not implemented. Seemed good
to have in hive.

> Hive stack() UDTF Doesn't Support NULL Insert Values
> ----------------------------------------------------
>
>                 Key: HIVE-8642
>                 URL: https://issues.apache.org/jira/browse/HIVE-8642
>             Project: Hive
>          Issue Type: Improvement
>          Components: SQL, UDF
>    Affects Versions: 0.13.0
>            Reporter: Nishant Kelkar
>            Priority: Minor
>
> The following tables exist:
> 1. test_table --  schema {"field_a":STRING, "field_b":STRING, "field_c":STRING}
> 2. dual -- schema {"field_1":INT}
> test_table contents:
> {code}
> en	dbpedia	http://dbpedia.org/schools/CMU
> {code}
> dual contents:
> {code}
> 1
> {code}
> I tried the following query, and it fails:
> {code}
> INSERT INTO TABLE test_table SELECT 
> stack(1,
> "en",
> "dbpedia",
> NULL
> ) AS (
> field_a,
> field_b,
> field_c
> ) FROM dual;
> {code}
> The error returned: FAILED: NullPointerException null



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

Mime
View raw message