You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2022/04/16 21:01:00 UTC

[jira] [Resolved] (SPARK-38263) StructType explode

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

Sean R. Owen resolved SPARK-38263.
----------------------------------
    Resolution: Not A Problem

You can already use 'select mystruct.*' to turn the fields into cols

> StructType explode
> ------------------
>
>                 Key: SPARK-38263
>                 URL: https://issues.apache.org/jira/browse/SPARK-38263
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.2.1
>            Reporter: Sayed Mohammad Hossein Torabi
>            Priority: Minor
>
> Currently explode function only supports Array datatypes and Map datatypes but not StructType. Supporting StructType helps spark user's to transform datasets to a flatten one and this feature would be helpful with dealing semi-structured and unstructured datasets.
> the idea is to support StructType in the first place and also add `prefix` and `postfix` option to it 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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