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 2020/05/25 06:39:00 UTC

[jira] [Commented] (SPARK-31808) Make struct function's output name and class name pretty

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

Apache Spark commented on SPARK-31808:
--------------------------------------

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

> Make struct function's output name and class name pretty
> --------------------------------------------------------
>
>                 Key: SPARK-31808
>                 URL: https://issues.apache.org/jira/browse/SPARK-31808
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Hyukjin Kwon
>            Priority: Minor
>         Attachments: Screen Shot 2020-05-25 at 12.54.41 PM.png
>
>
> {code}
> scala> sql("select struct(1)").show()
> +---------------------+
> |named_struct(col1, 1)|
> +---------------------+
> |                  [1]|
> +---------------------+
> {code}
> It should be:
> {code}
> scala> sql("select struct(1)").show()
> +---------+
> |struct(1)|
> +---------+
> |      [1]|
> +---------+
> {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