You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2021/09/05 22:08:00 UTC

[jira] [Resolved] (SPARK-36635) spark-sql do NOT support that select name expression as string type now

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

Kousuke Saruta resolved SPARK-36635.
------------------------------------
    Resolution: Not A Problem

[~weixiuli]
I'll close this. If you can justify that it should work, feel free to reopen this.

> spark-sql do NOT support  that select name expression as string type now
> ------------------------------------------------------------------------
>
>                 Key: SPARK-36635
>                 URL: https://issues.apache.org/jira/browse/SPARK-36635
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.1.0, 3.1.2
>            Reporter: weixiuli
>            Priority: Major
>
> The follow statement would throw an exception.
> {code:java}
>  sql("SELECT age as 'a', name as 'n' FROM VALUES (2, 'Alice'), (5, 'Bob') people(age, name)")
> {code}
> {code:java}
> // Exception information
> Error in query:
> mismatched input ''a'' expecting {<EOF>, ';'}(line 1, pos 14)
> == SQL ==
> SELECT age as 'a', name as 'n' FROM VALUES (2, 'Alice'), (5, 'Bob') people(age, name)
> --------------^^^
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org