drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victoria Markman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-4019) Limit 0 with two flatten operators in a query fails with unsupported exception
Date Tue, 03 Nov 2015 17:23:27 GMT
Victoria Markman created DRILL-4019:
---------------------------------------

             Summary: Limit 0 with two flatten operators in a query fails with unsupported
exception
                 Key: DRILL-4019
                 URL: https://issues.apache.org/jira/browse/DRILL-4019
             Project: Apache Drill
          Issue Type: Bug
          Components: Execution - Relational Operators
    Affects Versions: 1.2.0
            Reporter: Victoria Markman


I think this is manifestation of DRILL-2256 in a different SQL scenario.

test.json
{code}
{
"c1" : [[1,2,3],[10,20,30]]
}
{code}

Two flatten operators with limit zero fails:
{code}
0: jdbc:drill:schema=dfs> select flatten(c1[0]), flatten(c1[1]) from `test.json` limit
0;
Error: SYSTEM ERROR: UnsupportedOperationException: Unable to get value vector class for minor
type [LATE] and mode [OPTIONAL]
Fragment 0:0
[Error Id: 0f19b566-ca53-43c7-ae0f-fec39c909cfd on atsqa4-133.qa.lab:31010] (state=,code=0)
{code}

Single flatten: works
{code}
0: jdbc:drill:schema=dfs> select flatten(c1[0]) from `test.json` limit 0;
+---------+
| EXPR$0  |
+---------+
+---------+
No rows selected (0.258 seconds)
{code}

Without limit 0:
{code}
0: jdbc:drill:schema=dfs> select flatten(c1[0]) from `test.json`;
+---------+
| EXPR$0  |
+---------+
| 1       |
| 2       |
| 3       |
+---------+
3 rows selected (0.268 seconds)

0: jdbc:drill:schema=dfs> select flatten(c1[0]), flatten(c1[1]) from `test.json`;
+---------+---------+
| EXPR$0  | EXPR$1  |
+---------+---------+
| 1       | 10      |
| 1       | 20      |
| 1       | 30      |
| 2       | 10      |
| 2       | 20      |
| 2       | 30      |
| 3       | 10      |
| 3       | 20      |
| 3       | 30      |
+---------+---------+
9 rows selected (0.26 seconds)
{code}

drillbit.log
{code}
2015-11-03 17:13:19,237 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:foreman] INFO  o.a.d.e.s.schedule.BlockMapBuilder
- Failure finding Drillbit running on host atsqa4-135.qa.lab.  Skipping affinity to that host.
2015-11-03 17:13:19,237 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:foreman] INFO  o.a.d.e.s.schedule.BlockMapBuilder
- Failure finding Drillbit running on host atsqa4-134.qa.lab.  Skipping affinity to that host.
2015-11-03 17:13:19,237 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:foreman] INFO  o.a.d.e.s.schedule.BlockMapBuilder
- Get block maps: Executed 1 out of 1 using 1 threads. Time: 1ms total, 1.717980ms avg, 1ms
max.
2015-11-03 17:13:19,237 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:foreman] INFO  o.a.d.e.s.schedule.BlockMapBuilder
- Get block maps: Executed 1 out of 1 using 1 threads. Earliest start: 1.820000 μs, Latest
start: 1.820000 μs, Average start: 1.820000 μs .
2015-11-03 17:13:19,263 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:frag:0:0] INFO  o.a.d.e.w.fragment.FragmentExecutor
- 29c714cf-fdc7-2ac9-5fd4-c4fdae636550:0:0: State change requested AWAITING_ALLOCATION -->
RUNNING
2015-11-03 17:13:19,263 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:frag:0:0] INFO  o.a.d.e.w.f.FragmentStatusReporter
- 29c714cf-fdc7-2ac9-5fd4-c4fdae636550:0:0: State to report: RUNNING
2015-11-03 17:13:19,269 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:frag:0:0] INFO  o.a.d.e.w.fragment.FragmentExecutor
- 29c714cf-fdc7-2ac9-5fd4-c4fdae636550:0:0: State change requested RUNNING --> FAILED
2015-11-03 17:13:19,269 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:frag:0:0] INFO  o.a.d.e.w.fragment.FragmentExecutor
- 29c714cf-fdc7-2ac9-5fd4-c4fdae636550:0:0: State change requested FAILED --> FINISHED
2015-11-03 17:13:19,271 [29c714cf-fdc7-2ac9-5fd4-c4fdae636550:frag:0:0] ERROR o.a.d.e.w.fragment.FragmentExecutor
- SYSTEM ERROR: UnsupportedOperationException: Unable to get value vector class for minor
type [LATE] and mode [OPTIONAL]

Fragment 0:0

[Error Id: 95cd27b5-065d-4714-a3e0-cd8d8ff6d519 on atsqa4-133.qa.lab:31010]
org.apache.drill.common.exceptions.UserException: SYSTEM ERROR: UnsupportedOperationException:
Unable to get value vector class for minor type [LATE] and mode [OPTIONAL]

Fragment 0:0

[Error Id: 95cd27b5-065d-4714-a3e0-cd8d8ff6d519 on atsqa4-133.qa.lab:31010]
        at org.apache.drill.common.exceptions.UserException$Builder.build(UserException.java:534)
~[drill-common-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.work.fragment.FragmentExecutor.sendFinalState(FragmentExecutor.java:323)
[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.work.fragment.FragmentExecutor.cleanup(FragmentExecutor.java:178)
[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:292)
[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.common.SelfCleaningRunnable.run(SelfCleaningRunnable.java:38)
[drill-common-1.2.0.jar:1.2.0]
        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: java.lang.UnsupportedOperationException: Unable to get value vector class for minor
type [LATE] and mode [OPTIONAL]
        at org.apache.drill.exec.expr.TypeHelper.getValueVectorClass(TypeHelper.java:688)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.VectorContainer.addOrGet(VectorContainer.java:91)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.setupNewSchema(ProjectRecordBatch.java:421)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:78)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:129)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:147)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:104)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:94)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.flatten.FlattenRecordBatch.innerNext(FlattenRecordBatch.java:120)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:147)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:104)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:94)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:129)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:147)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:104)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:94)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.limit.LimitRecordBatch.innerNext(LimitRecordBatch.java:115)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:147)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:104)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:94)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch.innerNext(RemovingRecordBatch.java:94)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:147)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:104)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:94)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:51)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:129)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:147)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:83) ~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext(ScreenCreator.java:80)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:73) ~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.work.fragment.FragmentExecutor$1.run(FragmentExecutor.java:258)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at org.apache.drill.exec.work.fragment.FragmentExecutor$1.run(FragmentExecutor.java:252)
~[drill-java-exec-1.2.0.jar:1.2.0]
        at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_71]
        at javax.security.auth.Subject.doAs(Subject.java:415) ~[na:1.7.0_71]
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1566)
~[hadoop-common-2.5.1-mapr-1503.jar:na]
        at org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:252)
[drill-java-exec-1.2.0.jar:1.2.0]
        ... 4 common frames omitted
2015-11-03 17:13:19,284 [BitServer-4] WARN  o.a.drill.exec.work.foreman.Foreman - Dropping
request to move to COMPLETED state as query is already at FAILED state (which is terminal).
2015-11-03 17:13:19,284 [BitServer-4] WARN  o.a.d.e.w.b.ControlMessageHandler - Dropping request
to cancel fragment. 29c714cf-fdc7-2ac9-5fd4-c4fdae636550:0:0 does not exist.
{code}



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

Mime
View raw message