hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nishant Kelkar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-8642) Hive stack() UDTF Doesn't Support NULL Insert Values
Date Wed, 29 Oct 2014 09:08:34 GMT

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

Nishant Kelkar commented on HIVE-8642:
--------------------------------------

Stack trace for the exception:
{code}
2014-10-29 01:23:36,757 INFO  parse.SemanticAnalyzer (SemanticAnalyzer.java:analyzeInternal(8185))
- Starting Semantic Analysis
2014-10-29 01:23:36,757 INFO  parse.SemanticAnalyzer (SemanticAnalyzer.java:analyzeInternal(8215))
- Completed phase 1 of Semantic Analysis
2014-10-29 01:23:36,757 INFO  parse.SemanticAnalyzer (SemanticAnalyzer.java:getMetaData(951))
- Get metadata for source tables
2014-10-29 01:23:36,771 INFO  parse.SemanticAnalyzer (SemanticAnalyzer.java:getMetaData(1036))
- Get metadata for subqueries
2014-10-29 01:23:36,771 INFO  parse.SemanticAnalyzer (SemanticAnalyzer.java:getMetaData(1056))
- Get metadata for destination tables
2014-10-29 01:23:36,784 INFO  parse.SemanticAnalyzer (SemanticAnalyzer.java:analyzeInternal(8218))
- Completed getting MetaData in Semantic Analysis
2014-10-29 01:23:36,787 ERROR ql.Driver (SessionState.java:printError(427)) - FAILED: NullPointerException
null
java.lang.NullPointerException
	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.supportsConstantObjectInspector(ObjectInspectorUtils.java:943)
	at org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initializeAndFoldConstants(GenericUDF.java:115)
	at org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc.newInstance(ExprNodeGenericFuncDesc.java:215)
	at org.apache.hadoop.hive.ql.parse.TypeCheckProcFactory$DefaultExprProcessor.getXpathOrFuncExprNodeDesc(TypeCheckProcFactory.java:781)
	at org.apache.hadoop.hive.ql.parse.TypeCheckProcFactory$DefaultExprProcessor.process(TypeCheckProcFactory.java:908)
	at org.apache.hadoop.hive.ql.lib.DefaultRuleDispatcher.dispatch(DefaultRuleDispatcher.java:89)
	at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.dispatch(DefaultGraphWalker.java:87)
	at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.walk(DefaultGraphWalker.java:124)
	at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.startWalking(DefaultGraphWalker.java:101)
	at org.apache.hadoop.hive.ql.parse.TypeCheckProcFactory.genExprNode(TypeCheckProcFactory.java:166)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genExprNodeDesc(SemanticAnalyzer.java:8459)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genSelectPlan(SemanticAnalyzer.java:2485)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genSelectPlan(SemanticAnalyzer.java:2284)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPostGroupByBodyPlan(SemanticAnalyzer.java:6843)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genBodyPlan(SemanticAnalyzer.java:6814)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:7547)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8224)
	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:258)
	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:459)
	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:349)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:938)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:902)
	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:412)
	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:613)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:208)

{code}

> 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