drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-518) AssertionError in Optiq in allowPrecScale with ANY type
Date Sun, 04 Jan 2015 21:26:43 GMT

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

Jacques Nadeau resolved DRILL-518.
----------------------------------
    Resolution: Fixed

> AssertionError in Optiq in allowPrecScale with ANY type
> -------------------------------------------------------
>
>                 Key: DRILL-518
>                 URL: https://issues.apache.org/jira/browse/DRILL-518
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            Reporter: Jacques Nadeau
>            Assignee: Jinfeng Ni
>             Fix For: Future
>
>
> Errors on TPCH22
> java.lang.AssertionError: typeName.allowsPrecScale(true, false)
> 	at org.eigenbase.sql.type.BasicSqlType.<init>(BasicSqlType.java:66)
> 	at org.eigenbase.sql.type.SqlTypeFactoryImpl.createSqlType(SqlTypeFactoryImpl.java:59)
> 	at org.eigenbase.sql.type.SqlTypeTransforms$4.transformType(SqlTypeTransforms.java:106)
> 	at org.eigenbase.sql.type.SqlTypeTransformCascade.inferReturnType(SqlTypeTransformCascade.java:62)
> 	at org.eigenbase.sql.SqlOperator.inferReturnType(SqlOperator.java:451)
> 	at org.eigenbase.sql.SqlOperator.validateOperands(SqlOperator.java:418)
> 	at org.eigenbase.sql.SqlFunction.deriveType(SqlFunction.java:290)
> 	at org.eigenbase.sql.SqlFunction.deriveType(SqlFunction.java:206)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl$DeriveTypeVisitor.visit(SqlValidatorImpl.java:3870)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl$DeriveTypeVisitor.visit(SqlValidatorImpl.java:3857)
> 	at org.eigenbase.sql.SqlCall.accept(SqlCall.java:133)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.deriveTypeImpl(SqlValidatorImpl.java:1322)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.deriveType(SqlValidatorImpl.java:1305)
> 	at org.eigenbase.sql.type.InferTypes$1.inferOperandTypes(InferTypes.java:52)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.inferUnknownTypes(SqlValidatorImpl.java:1497)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.inferUnknownTypes(SqlValidatorImpl.java:1503)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.inferUnknownTypes(SqlValidatorImpl.java:1503)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateWhereOrOn(SqlValidatorImpl.java:2961)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateWhereClause(SqlValidatorImpl.java:2953)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateSelect(SqlValidatorImpl.java:2764)
> 	at org.eigenbase.sql.validate.SelectNamespace.validateImpl(SelectNamespace.java:60)
> 	at org.eigenbase.sql.validate.AbstractNamespace.validate(AbstractNamespace.java:80)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateNamespace(SqlValidatorImpl.java:747)
> 	at org.eigenbase.sql.validate.AbstractNamespace.getRowType(AbstractNamespace.java:117)
> 	at org.eigenbase.sql.validate.SelectNamespace.getRowType(SelectNamespace.java:30)
> 	at org.eigenbase.sql.validate.ListScope.findQualifyingTableName(ListScope.java:99)
> 	at org.eigenbase.sql.validate.DelegatingScope.fullyQualify(DelegatingScope.java:144)
> 	at org.eigenbase.sql.validate.SqlValidatorUtil$DeepCopier.visit(SqlValidatorUtil.java:367)
> 	at org.eigenbase.sql.validate.SqlValidatorUtil$DeepCopier.visit(SqlValidatorUtil.java:340)
> 	at org.eigenbase.sql.SqlIdentifier.accept(SqlIdentifier.java:222)
> 	at org.eigenbase.sql.validate.SqlValidatorUtil$DeepCopier.visit(SqlValidatorUtil.java:348)
> 	at org.eigenbase.sql.validate.SqlValidatorUtil$DeepCopier.visit(SqlValidatorUtil.java:340)
> 	at org.eigenbase.sql.SqlNodeList.accept(SqlNodeList.java:149)
> 	at org.eigenbase.sql.validate.AggregatingSelectScope.<init>(AggregatingSelectScope.java:65)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.registerQuery(SqlValidatorImpl.java:1998)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.registerQuery(SqlValidatorImpl.java:1921)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateScopedExpression(SqlValidatorImpl.java:708)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validate(SqlValidatorImpl.java:426)
> 	at net.hydromatic.optiq.prepare.PlannerImpl.validate(PlannerImpl.java:170)
> 	at org.apache.drill.exec.planner.sql.DrillSqlWorker.getLogicalRel(DrillSqlWorker.java:126)
> 	at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPhysicalPlan(DrillSqlWorker.java:216)
> 	at org.apache.drill.BaseTestQuery.testSqlPlan(BaseTestQuery.java:148)
> 	at org.apache.drill.BaseTestQuery.testSqlPlanFromFile(BaseTestQuery.java:107)
> 	at org.apache.drill.TestTpchPlanning.tpch22(TestTpchPlanning.java:138)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at java.lang.reflect.Method.invoke(Method.java:606)



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

Mime
View raw message