spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-20773) ParquetWriteSupport.writeFields is quadratic in number of fields
Date Tue, 16 May 2017 19:42:04 GMT

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

Apache Spark reassigned SPARK-20773:
------------------------------------

    Assignee: Apache Spark

> ParquetWriteSupport.writeFields is quadratic in number of fields
> ----------------------------------------------------------------
>
>                 Key: SPARK-20773
>                 URL: https://issues.apache.org/jira/browse/SPARK-20773
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.1
>            Reporter: T Poterba
>            Assignee: Apache Spark
>            Priority: Minor
>              Labels: easyfix, performance
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> The writeFields method in ParquetWriteSupport uses Seq.apply(i) to select all elements.
Since the fieldWriters object is a List, this is a quadratic operation.
> See line 123: https://github.com/apache/spark/blob/ac1ab6b9db188ac54c745558d57dd0a031d0b162/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetWriteSupport.scala



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message