You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2017/05/19 12:19:04 UTC
[jira] [Resolved] (SPARK-20773) ParquetWriteSupport.writeFields is
quadratic in number of fields
[ https://issues.apache.org/jira/browse/SPARK-20773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herman van Hovell resolved SPARK-20773.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
2.1.2
> 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
> Priority: Minor
> Labels: easyfix, performance
> Fix For: 2.1.2, 2.2.0
>
> 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