drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehant Baid (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-542) Drill fails to execute SUBSTRING function
Date Wed, 11 Jun 2014 02:00:04 GMT

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

Mehant Baid resolved DRILL-542.
-------------------------------

    Resolution: Fixed

> Drill fails to execute SUBSTRING function 
> ------------------------------------------
>
>                 Key: DRILL-542
>                 URL: https://issues.apache.org/jira/browse/DRILL-542
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 1.0.0
>            Reporter: Krystal
>            Assignee: Mehant Baid
>             Fix For: 1.0.0-BETA1
>
>
> Ran the following query:
> select substring(name, 5) from dfs.`voter` where age < 20;
> The query just hangs.  The following error messages were observed in the drillbit.out:
> Exception in thread "WorkManager-5" java.lang.AssertionError: Was not expecting value
'ANY' for enumeration 'org.eigenbase.sql.type.SqlTypeName' in this context
> 	at org.eigenbase.util.Util.unexpected(Util.java:1837)
> 	at org.eigenbase.sql.type.SqlTypeTransforms$4.toVar(SqlTypeTransforms.java:131)
> 	at org.eigenbase.sql.type.SqlTypeTransforms$4.transformType(SqlTypeTransforms.java:104)
> 	at org.eigenbase.sql.type.SqlTypeTransformCascade.inferReturnType(SqlTypeTransformCascade.java:62)
> 	at org.eigenbase.sql.SqlOperator.inferReturnType(SqlOperator.java:453)
> 	at org.eigenbase.sql.SqlOperator.validateOperands(SqlOperator.java:420)
> 	at org.eigenbase.sql.SqlFunction.deriveType(SqlFunction.java:291)
> 	at org.eigenbase.sql.SqlFunction.deriveType(SqlFunction.java:207)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl$DeriveTypeVisitor.visit(SqlValidatorImpl.java:4033)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl$DeriveTypeVisitor.visit(SqlValidatorImpl.java:4020)
> 	at org.eigenbase.sql.SqlCall.accept(SqlCall.java:166)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.deriveTypeImpl(SqlValidatorImpl.java:1441)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.deriveType(SqlValidatorImpl.java:1424)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.expandSelectItem(SqlValidatorImpl.java:415)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateSelectList(SqlValidatorImpl.java:3130)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateSelect(SqlValidatorImpl.java:2908)
> 	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:753)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateQuery(SqlValidatorImpl.java:742)
> 	at org.eigenbase.sql.SqlSelect.validate(SqlSelect.java:135)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validateScopedExpression(SqlValidatorImpl.java:707)
> 	at org.eigenbase.sql.validate.SqlValidatorImpl.validate(SqlValidatorImpl.java:423)
> 	at net.hydromatic.optiq.prepare.PlannerImpl.validate(PlannerImpl.java:153)
> 	at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:73)
> 	at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:350)
> 	at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:175)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:744)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message