[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to