You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/03/06 01:35:00 UTC

[jira] [Resolved] (SPARK-31036) Use stringArgs in Expression.toString to respect hidden parameters

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

Hyukjin Kwon resolved SPARK-31036.
----------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 27788
[https://github.com/apache/spark/pull/27788]

> Use stringArgs in Expression.toString to respect hidden parameters
> ------------------------------------------------------------------
>
>                 Key: SPARK-31036
>                 URL: https://issues.apache.org/jira/browse/SPARK-31036
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> Currently, the top of https://github.com/apache/spark/pull/27657, 
> {code}
> val identify = udf((input: Seq[Int]) => input)
> spark.range(10).select(identify(array("id"))).show()
> {code}
> shows hidden parameter `useStringTypeWhenEmpty`.
> {code}
> +---------------------+
> |UDF(array(id, false))|
> +---------------------+
> |                  [0]|
> |                  [1]|
> ...
> {code}
> This is a general problem and we should respect hidden parameters.



--
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