drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramana Inukonda Nagaraj (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-539) order by query on hive avro table fails
Date Wed, 11 Jun 2014 00:04:02 GMT

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

Ramana Inukonda Nagaraj commented on DRILL-539:
-----------------------------------------------

2014-06-10 23:54:37,524 [492a28d0-d354-4e32-86b2-647593289759:foreman] ERROR o.a.drill.exec.work.foreman.Foreman
- Error df771d7d-9989-4ac9-a46f-356339cf1e2f: Failure while setting up Foreman.
java.lang.IndexOutOfBoundsException: index (1) must be less than size (1)
        at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:305)
~[guava-14.0.1.jar:na]
        at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:284)
~[guava-14.0.1.jar:na]
        at com.google.common.collect.SingletonImmutableList.get(SingletonImmutableList.java:45)
~[guava-14.0.1.jar:na]
        at org.eigenbase.rex.RexBuilder.makeInputRef(RexBuilder.java:731) ~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.rel.SortRel.<init>(SortRel.java:94) ~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.rel.SortRel.<init>(SortRel.java:59) ~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.rel.RelCollationTraitDef.convert(RelCollationTraitDef.java:77) ~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.rel.RelCollationTraitDef.convert(RelCollationTraitDef.java:36) ~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.relopt.volcano.VolcanoPlanner.changeTraitsUsingConverters(VolcanoPlanner.java:1002)
~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.relopt.volcano.VolcanoPlanner.changeTraitsUsingConverters(VolcanoPlanner.java:1094)
~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.relopt.volcano.AbstractConverter$ExpandConversionRule.onMatch(AbstractConverter.java:107)
~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.relopt.volcano.VolcanoRuleCall.onMatch(VolcanoRuleCall.java:221)
~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.eigenbase.relopt.volcano.VolcanoPlanner.findBestExp(VolcanoPlanner.java:653)
~[optiq-core-0.7-20140513.013236-5.jar:na]
        at net.hydromatic.optiq.prepare.PlannerImpl.transform(PlannerImpl.java:271) ~[optiq-core-0.7-20140513.013236-5.jar:na]
        at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel(DefaultSqlHandler.java:129)
~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.getPlan(DefaultSqlHandler.java:109)
~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:129)
~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:337) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:185) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[na:1.7.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_45]
        at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]

> order by query on hive avro table fails
> ---------------------------------------
>
>                 Key: DRILL-539
>                 URL: https://issues.apache.org/jira/browse/DRILL-539
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            Reporter: Ramana Inukonda Nagaraj
>            Assignee: Aman Sinha
>             Fix For: 1.0.0-BETA1
>
>
> hive> desc doctors;
> OK
> number              	int                 	from deserializer   
> first_name          	string              	from deserializer   
> last_name           	string              	from deserializer   
> Time taken: 0.101 seconds, Fetched: 3 row(s)
> 0: jdbc:drill:schema=dfs> SELECT first_name FROM doctors;
> works.
> 0: jdbc:drill:schema=dfs> SELECT first_name FROM doctors ORDER BY `number`;
> org.eigenbase.relopt.RelOptPlanner$CannotPlanException: Node [rel#301:Subset#3.DRILL.[]]
could not be implemented; planner state:
> Root: rel#301:Subset#3.DRILL.[]
> Original rel:
> AbstractConverter(subset=[rel#301:Subset#3.DRILL.[]], convention=[DRILL], sort=[[]]):
rowcount = 1.7976931348623157E308, cumulative cost = {inf}, id = 302
>   ProjectRel(subset=[rel#300:Subset#3.NONE.PRESERVE], first_name=[$0]): rowcount = 1.7976931348623157E308,
cumulative cost = {1.7976931348623157E308 rows, 1.7976931348623157E308 cpu, 0.0 io}, id =
299
>     SortRel(subset=[rel#298:Subset#2.NONE.[1 Ascending]], sort0=[$1], dir0=[Ascending]):
rowcount = 1.7976931348623157E308, cumulative cost = {Infinity rows, 1.7976931348623157E308
cpu, 0.0 io}, id = 297
>       ProjectRel(subset=[rel#296:Subset#1.NONE.[]], first_name=[$1], number=[$0]): rowcount
= 100.0, cumulative cost = {100.0 rows, 200.0 cpu, 0.0 io}, id = 295
>         EnumerableTableAccessRel(subset=[rel#294:Subset#0.ENUMERABLE.[]], table=[[hive,
doctors]]): rowcount = 100.0, cumulative cost = {100.0 rows, 101.0 cpu, 0.0 io}, id = 290
> Sets:
> Set#0, type: RecordType(INTEGER number, VARCHAR(1) first_name, VARCHAR(1) last_name)
> 	rel#294:Subset#0.ENUMERABLE.[], best=rel#290, importance=0.6561
> 		rel#290:EnumerableTableAccessRel.ENUMERABLE.[](table=[hive, doctors]), rowcount=100.0,
cumulative cost={100.0 rows, 101.0 cpu, 0.0 io}
> 		rel#318:AbstractConverter.ENUMERABLE.[](child=rel#317:Subset#0.DRILL.[],convention=ENUMERABLE,sort=[]),
rowcount=100.0, cumulative cost={inf}
> 	rel#317:Subset#0.DRILL.[], best=rel#322, importance=0.5904900000000001
> 		rel#319:AbstractConverter.DRILL.[](child=rel#294:Subset#0.ENUMERABLE.[],convention=DRILL,sort=[]),
rowcount=100.0, cumulative cost={inf}
> 		rel#322:DrillScanRel.DRILL.[](table=[hive, doctors]), rowcount=100.0, cumulative cost={100.0
rows, 101.0 cpu, 0.0 io}
> Set#1, type: RecordType(VARCHAR(1) first_name, INTEGER number)
> 	rel#296:Subset#1.NONE.[], best=null, importance=0.7290000000000001
> 		rel#295:ProjectRel.NONE.[](child=rel#294:Subset#0.ENUMERABLE.[],first_name=$1,number=$0),
rowcount=100.0, cumulative cost={inf}
> 	rel#310:Subset#1.DRILL.[], best=rel#320, importance=0.6561
> 		rel#311:AbstractConverter.DRILL.[](child=rel#296:Subset#1.NONE.[],convention=DRILL,sort=[]),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#320:DrillProjectRel.DRILL.[](child=rel#317:Subset#0.DRILL.[],first_name=$1,number=$0),
rowcount=100.0, cumulative cost={110.0 rows, 121.0 cpu, 0.0 io}
> Set#2, type: RecordType(VARCHAR(1) first_name, INTEGER number)
> 	rel#298:Subset#2.NONE.[1 Ascending], best=null, importance=0.81
> 		rel#297:SortRel.NONE.[1 Ascending](child=rel#296:Subset#1.NONE.[],sort0=$1,dir0=Ascending),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 	rel#303:Subset#2.DRILL.PRESERVE, best=null, importance=0.81
> 		rel#304:AbstractConverter.DRILL.PRESERVE(child=rel#298:Subset#2.NONE.[1 Ascending],convention=DRILL,sort=PRESERVE),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#314:AbstractConverter.DRILL.PRESERVE(child=rel#313:Subset#2.DRILL.[1 Ascending],convention=DRILL,sort=PRESERVE),
rowcount=100.0, cumulative cost={inf}
> 	rel#313:Subset#2.DRILL.[1 Ascending], best=rel#312, importance=0.7290000000000001
> 		rel#315:AbstractConverter.DRILL.[1 Ascending](child=rel#298:Subset#2.NONE.[1 Ascending],convention=DRILL,sort=[1
Ascending]), rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#316:AbstractConverter.DRILL.[1 Ascending](child=rel#303:Subset#2.DRILL.PRESERVE,convention=DRILL,sort=[1
Ascending]), rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#312:DrillSortRel.DRILL.[1 Ascending](child=rel#310:Subset#1.DRILL.[],sort0=$1,dir0=Ascending),
rowcount=100.0, cumulative cost={3794.1361487904733 rows, 221.0 cpu, 0.0 io}
> Set#3, type: RecordType(VARCHAR(1) first_name)
> 	rel#300:Subset#3.NONE.PRESERVE, best=null, importance=0.9
> 		rel#299:ProjectRel.NONE.PRESERVE(child=rel#298:Subset#2.NONE.[1 Ascending],first_name=$0),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 	rel#301:Subset#3.DRILL.[], best=null, importance=1.0
> 		rel#302:AbstractConverter.DRILL.[](child=rel#300:Subset#3.NONE.PRESERVE,convention=DRILL,sort=[]),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#307:AbstractConverter.DRILL.[](child=rel#306:Subset#3.DRILL.PRESERVE,convention=DRILL,sort=[]),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#308:AbstractConverter.DRILL.PRESERVE(child=rel#300:Subset#3.NONE.PRESERVE,convention=DRILL,sort=PRESERVE),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#309:AbstractConverter.DRILL.PRESERVE(child=rel#301:Subset#3.DRILL.[],convention=DRILL,sort=PRESERVE),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#305:DrillProjectRel.DRILL.PRESERVE(child=rel#303:Subset#2.DRILL.PRESERVE,first_name=$0),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 	rel#306:Subset#3.DRILL.PRESERVE, best=null, importance=0.9
> 		rel#308:AbstractConverter.DRILL.PRESERVE(child=rel#300:Subset#3.NONE.PRESERVE,convention=DRILL,sort=PRESERVE),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#309:AbstractConverter.DRILL.PRESERVE(child=rel#301:Subset#3.DRILL.[],convention=DRILL,sort=PRESERVE),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 		rel#305:DrillProjectRel.DRILL.PRESERVE(child=rel#303:Subset#2.DRILL.PRESERVE,first_name=$0),
rowcount=1.7976931348623157E308, cumulative cost={inf}
> 	org.eigenbase.relopt.volcano.RelSubset$CheapestPlanReplacer.visit(RelSubset.java:442)
~[optiq-core-0.4.18.jar:na]
> 	org.eigenbase.relopt.volcano.RelSubset.buildCheapestPlan(RelSubset.java:284) ~[optiq-core-0.4.18.jar:na]
> 	org.eigenbase.relopt.volcano.VolcanoPlanner.findBestExp(VolcanoPlanner.java:628) ~[optiq-core-0.4.18.jar:na]
> 	net.hydromatic.optiq.prepare.PlannerImpl.transform(PlannerImpl.java:200) ~[optiq-core-0.4.18.jar:na]
> 	org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:75) ~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:350) [drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:175) [drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
> 	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]
> 	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]
> 	java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message