drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Altekruse (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-1766) kvgen+flatten fails "Unable to find holder type for minorType: LATE"
Date Tue, 02 Dec 2014 22:53:12 GMT

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

Jason Altekruse resolved DRILL-1766.
------------------------------------
    Resolution: Fixed

Confirmed as fixed by commit for DRILL-1781

> 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)

Mime
View raw message