You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/04/29 17:12:07 UTC

[jira] [Closed] (DRILL-1766) kvgen+flatten fails "Unable to find holder type for minorType: LATE"

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

Rahul Challapalli closed DRILL-1766.
------------------------------------

Verified and added the below testcase

Functional/Passing/json_kvgenflatten/combo/kvgenflattenbug_DRILL-1766.q

> kvgen+flatten fails "Unable to find holder type for minorType: LATE"
> --------------------------------------------------------------------
>
>                 Key: DRILL-1766
>                 URL: https://issues.apache.org/jira/browse/DRILL-1766
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 0.6.0, 0.7.0
>         Environment: Tested on 0.6 r3
>            Reporter: Hao Zhu
>            Assignee: Jason Altekruse
>            Priority: Blocker
>             Fix For: 0.7.0
>
>
> Minimim reproduce:
> {code}
> test3.json
> {"data": [{"id":"1","name":{"orange":0}}, {"id":"2","name":{"apple":0}} ]}
> {code}
> {code}
> > with tmp as
> . . . . . . . . . . . . . . . . . . . . . .> ( select flatten(data) as newdata from dfs.tmp.`test3.json`)
> . . . . . . . . . . . . . . . . . . . . . .> select tmp.newdata.name from tmp;
> +------------+
> |   EXPR$0   |
> +------------+
> | {"orange":0} |
> | {"apple":0} |
> +------------+
> 2 rows selected (0.144 seconds)
> 0: jdbc:drill:zk=n1a:5181,n2a:5181,n3a:5181> with tmp as
> . . . . . . . . . . . . . . . . . . . . . .> ( select flatten(data) as newdata from dfs.tmp.`test3.json`)
> . . . . . . . . . . . . . . . . . . . . . .> select kvgen(tmp.newdata.name) from tmp;
> Query failed: Failure while running fragment., Unable to find holder type for minorType: LATE [ 7c9ab412-aa83-47a2-bf7e-e91abdd1431f on n4a:31010 ]
>   (java.lang.UnsupportedOperationException) Unable to find holder type for minorType: LATE
>     org.apache.drill.exec.expr.TypeHelper.getHolderType():1764
>     org.apache.drill.exec.expr.ClassGenerator.getHolderType():456
>     org.apache.drill.exec.expr.ClassGenerator.declare():308
>     org.apache.drill.exec.expr.ClassGenerator.declare():304
>     org.apache.drill.exec.expr.EvaluationVisitor$EvalVisitor.visitUnknown():279
>     org.apache.drill.exec.expr.EvaluationVisitor$ConstantFilter.visitUnknown():999
>     org.apache.drill.exec.expr.EvaluationVisitor$ConstantFilter.visitUnknown():745
>     org.apache.drill.common.expression.visitors.AbstractExprVisitor.visitNullConstant():162
>     org.apache.drill.common.expression.TypedNullConstant.accept():46
>     org.apache.drill.exec.expr.EvaluationVisitor$EvalVisitor.visitFunctionHolderExpression():131
>     org.apache.drill.exec.expr.EvaluationVisitor$ConstantFilter.visitFunctionHolderExpression():772
>     org.apache.drill.exec.expr.EvaluationVisitor$ConstantFilter.visitFunctionHolderExpression():745
>     org.apache.drill.common.expression.FunctionHolderExpression.accept():47
>     org.apache.drill.exec.expr.EvaluationVisitor.addExpr():94
>     org.apache.drill.exec.expr.ClassGenerator.addExpr():225
>     org.apache.drill.exec.expr.ClassGenerator.addExpr():217
>     org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.setupNewSchema():402
>     org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.buildSchema():270
>     org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.buildSchema():80
>     org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.buildSchema():269
>     org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.buildSchema():80
>     org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.buildSchema():95
>     org.apache.drill.exec.work.fragment.FragmentExecutor.run():111
>     org.apache.drill.exec.work.WorkManager$RunnableWrapper.run():249
>     .......():0
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}



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