[
https://issues.apache.org/jira/browse/SPARK-14197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15214142#comment-15214142
]
Herman van Hovell commented on SPARK-14197:
-------------------------------------------
We don't support correlated subqueries yet (e.g. {{IN (SELECT * FROM ...)}}).
Is this your actual query? It seems a bit contrived.
> Error: org.apache.spark.sql.catalyst.analysis.UnresolvedException: Invalid
> call to name on unresolved object, tree: unresolvedalias(if ((imei#33365 =
> 1AA10007)) imei#33365 else cast(null as string)) (state=,code=0)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-14197
> URL: https://issues.apache.org/jira/browse/SPARK-14197
> 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 following error occurs.
> select count(*) from babu1 where imei in ( select if (imei =
> '1AA10007',imei,NULL) from babu1);
> Error: org.apache.spark.sql.catalyst.analysis.UnresolvedException: Invalid
> call to name on unresolved object, tree: unresolvedalias(if ((imei#33365 =
> 1AA10007)) imei#33365 else cast(null as string)) (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]