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

Wenchen Fan resolved SPARK-26837.
---------------------------------
       Resolution: Fixed
         Assignee: Liang-Chi Hsieh
    Fix Version/s: 3.0.0

> Pruning nested fields from object serializers
> ---------------------------------------------
>
>                 Key: SPARK-26837
>                 URL: https://issues.apache.org/jira/browse/SPARK-26837
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Liang-Chi Hsieh
>            Assignee: Liang-Chi Hsieh
>            Priority: Major
>             Fix For: 3.0.0
>
>
> In SPARK-26619, we make change to prune unnecessary individual serializers 
> when serializing objects. This is extension to SPARK-26619. We can further 
> prune nested fields from object serializers if they are not used.
> For example, in following query, we only use one field in a struct column:
> {code:java}
> val data = Seq((("a", 1), 1), (("b", 2), 2), (("c", 3), 3))
> val df = data.toDS().map(t => (t._1, t._2 + 1)).select("_1._1")
> {code}
> So, instead of having a serializer to create a two fields struct, we can 
> prune unnecessary field from it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to