[
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: [email protected]
For additional commands, e-mail: [email protected]