You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yi Tian (JIRA)" <ji...@apache.org> on 2014/09/25 09:52:33 UTC
[jira] [Commented] (SPARK-3688) LogicalPlan can't resolve column
correctlly
[ https://issues.apache.org/jira/browse/SPARK-3688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14147520#comment-14147520 ]
Yi Tian commented on SPARK-3688:
--------------------------------
As we know, the hive support complex colunm datatype like struct.
So it is hard to resolve a reference like a.b.c
I think we should add some judgements on the datatype attributes, like:
{quote}
option.dataType.isInstanceOf[StructType]
{quote}
> LogicalPlan can't resolve column correctlly
> -------------------------------------------
>
> Key: SPARK-3688
> URL: https://issues.apache.org/jira/browse/SPARK-3688
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.1.0
> Reporter: Yi Tian
>
> How to reproduce this problem:
> create a table:
> {quote}
> create table test (a string, b string);
> {quote}
> execute sql:
> {quote}
> select a.b ,count(1) from test a join test t group by a.b;
> {quote}
--
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