[ 
https://issues.apache.org/jira/browse/SPARK-22155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon updated SPARK-22155:
---------------------------------
    Labels: bulk-closed  (was: )

> Generates a simple default alias for the function in select
> -----------------------------------------------------------
>
>                 Key: SPARK-22155
>                 URL: https://issues.apache.org/jira/browse/SPARK-22155
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Lijia Liu
>            Priority: Minor
>              Labels: bulk-closed
>
> When execute some query witch has function in select clause,  Spark use 
> Pretty SQL as default alias.
> But, Consider the following case:
> {code:java}
> create table tmp1
> As 
> Select func(a, b)
> From tb1;
> create table tmp2
> As 
> Select func(a, b)
> From tb2;
> Insert overwrite table tb3
> select *
> From 
> tb1 a
> Union
> Tb2 b;
> {code}
> Create table will fail due to func(a, b) has comma. Therefore, we can use 
> simple alias refer to hive.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to