You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yin Huai (JIRA)" <ji...@apache.org> on 2015/12/18 18:55:46 UTC

[jira] [Updated] (SPARK-11619) cannot use UDTF in DataFrame.selectExpr

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

Yin Huai updated SPARK-11619:
-----------------------------
    Assignee: Dilip Biswal

> cannot use UDTF in DataFrame.selectExpr
> ---------------------------------------
>
>                 Key: SPARK-11619
>                 URL: https://issues.apache.org/jira/browse/SPARK-11619
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Wenchen Fan
>            Assignee: Dilip Biswal
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> Currently if use UDTF like `explode`, `json_tuple` in `DataFrame.selectExpr`, it will be parsed into `UnresolvedFunction` first, and then alias it with `expr.prettyString`. However, UDTF may need MultiAlias so we will get error if we run:
> {code}
> val df = Seq((Map("1" -> 1), 1)).toDF("a", "b")
> df.selectExpr("explode(a)").show()
> {code}
> [info]   org.apache.spark.sql.AnalysisException: Expect multiple names given for org.apache.spark.sql.catalyst.expressions.Explode,
> [info] but only single name ''explode(a)' specified;



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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