You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Liang-Chi Hsieh (JIRA)" <ji...@apache.org> on 2016/02/05 03:15:39 UTC
[jira] [Comment Edited] (SPARK-13206) Subquery Alias in Hive Parser
[ https://issues.apache.org/jira/browse/SPARK-13206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15133520#comment-15133520 ]
Liang-Chi Hsieh edited comment on SPARK-13206 at 2/5/16 2:14 AM:
-----------------------------------------------------------------
I tried your query. Looks like it can be parsed. The parsed logical plan looks like:
{code}
'Project [unresolvedalias('x.c1,None)]
+- 'Join Inner, Some(('x.c1 = 'y.c1))
:- 'Subquery x
: +- 'Project [unresolvedalias(*,None)]
: +- 'UnresolvedRelation `t1`, None
+- 'Subquery y
+- 'Project [unresolvedalias(*,None)]
+- 'UnresolvedRelation `t1`, None
{code}
was (Author: viirya):
I tried your query. Looks like it can be parsed. The parsed logical plan looks like:
'Project [unresolvedalias('x.c1,None)]
+- 'Join Inner, Some(('x.c1 = 'y.c1))
:- 'Subquery x
: +- 'Project [unresolvedalias(*,None)]
: +- 'UnresolvedRelation `t1`, None
+- 'Subquery y
+- 'Project [unresolvedalias(*,None)]
+- 'UnresolvedRelation `t1`, None
> Subquery Alias in Hive Parser
> -----------------------------
>
> Key: SPARK-13206
> URL: https://issues.apache.org/jira/browse/SPARK-13206
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Xiao Li
> Fix For: 2.0.0
>
>
> {code} select x.c1 from (select * from t1) as x inner join (select * from t1) as y on x.c1 = y.c1{code}
> The current Parser is unable to parse it.
--
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