You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2016/03/28 14:57:25 UTC

[jira] [Commented] (SPARK-14198) Error: org.apache.spark.sql.AnalysisException: cannot recognize input near '' '' '' in subquery source; line 1 pos 86 (state=,code=0)

    [ https://issues.apache.org/jira/browse/SPARK-14198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15214161#comment-15214161 ] 

Herman van Hovell commented on SPARK-14198:
-------------------------------------------

Please add an alias at the end of the sub-query, e.g.: {{select count from ( select case when imei like '%007%' then imei end from babu8) a}}

> Error: org.apache.spark.sql.AnalysisException: cannot recognize input near '<EOF>' '<EOF>' '<EOF>' in subquery source; line 1 pos 86 (state=,code=0)
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-14198
>                 URL: https://issues.apache.org/jira/browse/SPARK-14198
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.5.1
>            Reporter: Chetan Bhat
>            Priority: Minor
>   Original Estimate: 0.05h
>  Remaining Estimate: 0.05h
>
> In Beeline when the SQL is executed using Spark the error occurs.
>  select count(*) from ( select  case when imei like '%007%'  then imei end  from babu8);
> Error: org.apache.spark.sql.AnalysisException: cannot recognize input near '<EOF>' '<EOF>' '<EOF>' in subquery source; line 1 pos 86 (state=,code=0)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org