hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szehon Ho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-12296) ClassCastException when selecting constant in inner select
Date Thu, 29 Oct 2015 20:54:27 GMT

     [ https://issues.apache.org/jira/browse/HIVE-12296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Szehon Ho updated HIVE-12296:
-----------------------------
    Summary: ClassCastException when selecting constant in inner select  (was: Classcast exception
when selecting constant in inner select)

> ClassCastException when selecting constant in inner select
> ----------------------------------------------------------
>
>                 Key: HIVE-12296
>                 URL: https://issues.apache.org/jira/browse/HIVE-12296
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>            Reporter: Szehon Ho
>
> Following query:
> {noformat}
> SELECT
> t1.bigint_col_3
> FROM table_3 t1
> WHERE
> (t1.bigint_col_3) IN (SELECT
> 0.0 as decimal_col
> FROM table_3)
> {noformat}
> produces an exception:
> {noformat}
> java.lang.ClassCastException: org.apache.hadoop.hive.ql.plan.ExprNodeConstantDesc cannot
be cast to org.apache.hadoop.hive.ql.plan.ExprNodeColumnDesc
> 	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.insertSelectForSemijoin(SemanticAnalyzer.java:7581)
> 	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genJoinOperator(SemanticAnalyzer.java:7524)
> 	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genFilterPlan(SemanticAnalyzer.java:2782)
> 	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genBodyPlan(SemanticAnalyzer.java:8771)
> 	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:9672)
> 	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:9565)
> 	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genOPTree(SemanticAnalyzer.java:10057)
> 	at org.apache.hadoop.hive.ql.parse.CalcitePlanner.genOPTree(CalcitePlanner.java:336)
> 	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:10068)
> 	at org.apache.hadoop.hive.ql.parse.CalcitePlanner.analyzeInternal(CalcitePlanner.java:215)
> 	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:237)
> 	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:440)
> 	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:312)
> 	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1199)
> 	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1252)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1124)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1112)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:225)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:177)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:387)
> 	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:758)
> 	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:703)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:632)
> 	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.run(RunJar.java:221)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> {noformat}



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

Mime
View raw message