drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victoria Markman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-4009) Assert in a query with concat function in a group by and limit in outer query
Date Mon, 02 Nov 2015 22:48:27 GMT

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

Victoria Markman commented on DRILL-4009:
-----------------------------------------

drillbit.log
{code}
2015-11-02 22:21:00,219 [29c81e34-602c-dd9e-54f6-0057bc6efc9e:foreman] ERROR o.a.drill.exec.work.foreman.Foreman
- SYSTEM ERROR: AssertionError: Internal error: Type 'RecordType(ANY $f0)' has no field 'EXPR$0'


[Error Id: 3366119e-baec-4aa1-b4fe-a58947bba088 on atsqa4-133.qa.lab:31010]
org.apache.drill.common.exceptions.UserException: SYSTEM ERROR: AssertionError: Internal error:
Type 'RecordType(ANY $f0)' has no field 'EXPR$0'


[Error Id: 3366119e-baec-4aa1-b4fe-a58947bba088 on atsqa4-133.qa.lab:31010]
        at org.apache.drill.common.exceptions.UserException$Builder.build(UserException.java:534)
~[drill-common-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman$ForemanResult.close(Foreman.java:742)
[drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman$StateSwitch.processEvent(Foreman.java:841)
[drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman$StateSwitch.processEvent(Foreman.java:786)
[drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.common.EventProcessor.sendEvent(EventProcessor.java:73) [drill-common-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman$StateSwitch.moveToState(Foreman.java:788)
[drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman.moveToState(Foreman.java:894) [drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:255) [drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[na:1.7.0_71]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_71]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
Caused by: org.apache.drill.exec.work.foreman.ForemanException: Unexpected exception during
fragment initialization: Internal error: Type 'RecordType(ANY $f0)' has no field 'EXPR$0'
        ... 4 common frames omitted
Caused by: java.lang.AssertionError: Internal error: Type 'RecordType(ANY $f0)' has no field
'EXPR$0'
        at org.apache.calcite.util.Util.newInternal(Util.java:777) ~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.rex.RexBuilder.makeFieldAccess(RexBuilder.java:167) ~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter.convertIdentifier(SqlToRelConverter.java:3217)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter.access$1400(SqlToRelConverter.java:184)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.visit(SqlToRelConverter.java:4172)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.visit(SqlToRelConverter.java:3595)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql.SqlIdentifier.accept(SqlIdentifier.java:274) ~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter$Blackboard.convertExpression(SqlToRelConverter.java:4054)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter.convertSelectList(SqlToRelConverter.java:3425)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter.convertSelectImpl(SqlToRelConverter.java:626)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter.convertSelect(SqlToRelConverter.java:582)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter.convertQueryRecursive(SqlToRelConverter.java:2787)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.sql2rel.SqlToRelConverter.convertQuery(SqlToRelConverter.java:536)
~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.calcite.prepare.PlannerImpl.convert(PlannerImpl.java:204) ~[calcite-core-1.4.0-drill-r6.jar:1.4.0-drill-r6]
        at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToRel(DefaultSqlHandler.java:467)
~[drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.validateAndConvert(DefaultSqlHandler.java:193)
~[drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.getPlan(DefaultSqlHandler.java:159)
~[drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:178)
~[drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:905) [drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:244) [drill-java-exec-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
        ... 3 common frames omitted
{code}


> Assert in a query with concat function in a group by and limit in outer query
> -----------------------------------------------------------------------------
>
>                 Key: DRILL-4009
>                 URL: https://issues.apache.org/jira/browse/DRILL-4009
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 1.2.0
>            Reporter: Victoria Markman
>
> {code}
> 0: jdbc:drill:schema=dfs> select * from ( select concat(b1, '***') from t1 group by
concat(b1, '***') ) limit 10;
> Error: SYSTEM ERROR: AssertionError: Internal error: Type 'RecordType(ANY $f0)' has no
field 'EXPR$0'
> [Error Id: 3366119e-baec-4aa1-b4fe-a58947bba088 on atsqa4-133.qa.lab:31010] (state=,code=0)
> {code}
> Works:
> {code}
> 0: jdbc:drill:schema=dfs> select concat(b1, '***') from t1 group by concat(b1, '***')
limit 10;
> +-----------+
> |  EXPR$0   |
> +-----------+
> | ***       |
> | aaaaa***  |
> | bbbbb***  |
> | ccccc***  |
> | eeeee***  |
> | fffff***  |
> | ggggg***  |
> | hhhhh***  |
> | iiiii***  |
> | jjjjj***  |
> +-----------+
> 10 rows selected (0.672 seconds)
> {code}
> Drill version:
> {code}
> #Sat Oct 31 01:10:06 UTC 2015
> git.commit.id.abbrev=e4b94a7
> {code}



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

Mime
View raw message