hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dere (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-5648) error when casting partition column to varchar in where clause
Date Fri, 25 Oct 2013 02:00:02 GMT

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

Jason Dere commented on HIVE-5648:
----------------------------------

Looks like ExprNodeConstantDesc.getWritableObjectInspector() should have been using the TypeInfo
to get the object inspector, rather than using PrimitiveCategory.

2013-10-24 18:38:37,527 ERROR ql.Driver (SessionState.java:printError(435)) - FAILED: RuntimeException
org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Internal error:
Cannot find ObjectInspector  for VARCHAR
java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException:
Internal error: Cannot find ObjectInspector  for VARCHAR
        at org.apache.hadoop.hive.ql.exec.FetchTask.initialize(FetchTask.java:86)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:492)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:351)
        at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1004)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:915)
        at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:268)
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:220)
        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:422)
        at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:790)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:623)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Internal
error: Cannot find ObjectInspector  for VARCHAR
        at org.apache.hadoop.hive.ql.exec.FilterOperator.initializeOp(FilterOperator.java:81)
        at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:377)
        at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:453)
        at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:409)
        at org.apache.hadoop.hive.ql.exec.TableScanOperator.initializeOp(TableScanOperator.java:188)
        at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:377)
        at org.apache.hadoop.hive.ql.exec.FetchTask.initialize(FetchTask.java:80)
        ... 15 more
Caused by: java.lang.RuntimeException: Internal error: Cannot find ObjectInspector  for VARCHAR
        at org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorFactory.getPrimitiveJavaObjectInspector(PrimitiveObjectInspectorFactory.java:310)
        at org.apache.hadoop.hive.ql.plan.ExprNodeConstantDesc.getWritableObjectInspector(ExprNodeConstantDesc.java:65)
        at org.apache.hadoop.hive.ql.exec.ExprNodeConstantEvaluator.<init>(ExprNodeConstantEvaluator.java:36)
        at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluatorFactory.get(ExprNodeEvaluatorFactory.java:44)
        at org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator.<init>(ExprNodeGenericFuncEvaluator.java:90)
        at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluatorFactory.get(ExprNodeEvaluatorFactory.java:52)
        at org.apache.hadoop.hive.ql.exec.FilterOperator.initializeOp(FilterOperator.java:71)
        ... 21 more


> error when casting partition column to varchar in where clause 
> ---------------------------------------------------------------
>
>                 Key: HIVE-5648
>                 URL: https://issues.apache.org/jira/browse/HIVE-5648
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>
> hive> select * from partition_varchar_2 where cast(dt as varchar(10)) = '2000-01-01';
> FAILED: RuntimeException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException:
Internal error: Cannot find ObjectInspector  for VARCHAR



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message