You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/03/10 17:00:06 UTC

[jira] [Commented] (SPARK-19850) Support aliased expressions in function parameters

    [ https://issues.apache.org/jira/browse/SPARK-19850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15905404#comment-15905404 ] 

Apache Spark commented on SPARK-19850:
--------------------------------------

User 'hvanhovell' has created a pull request for this issue:
https://github.com/apache/spark/pull/17245

> Support aliased expressions in function parameters
> --------------------------------------------------
>
>                 Key: SPARK-19850
>                 URL: https://issues.apache.org/jira/browse/SPARK-19850
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Herman van Hovell
>            Assignee: Herman van Hovell
>
> The SQL parser currently does not allow a user to pass an aliased expression as function parameter. This can be useful if we want to create a struct. For example {{select struct(a + 1 as c, b + 4 as d) from tbl_x}} would create a struct with columns {{c}} and {{d}}, instead {{col1}} and {{col2}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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