You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "weixiuli (Jira)" <ji...@apache.org> on 2021/09/01 08:18:00 UTC
[jira] [Created] (SPARK-36635) spark-sql do NOT support that
select name expression as string type now
weixiuli created SPARK-36635:
--------------------------------
Summary: 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: Block Manager
Affects Versions: 3.1.2, 3.1.0
Reporter: weixiuli
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