Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.6.0, 0.7.0
-
None
-
Tested on 0.6 r3
Description
Minimim reproduce:
test3.json {"data": [{"id":"1","name":{"orange":0}}, {"id":"2","name":{"apple":0}} ]}
> 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)
Attachments
Issue Links
- Is contained by
-
DRILL-1781 For complex functions, don't return until schema is known
- Resolved