You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "T Poterba (JIRA)" <ji...@apache.org> on 2017/05/16 19:25:04 UTC

[jira] [Created] (SPARK-20773) ParquetWriteSupport.writeFields has is quadratic in number of fields

T Poterba created SPARK-20773:
---------------------------------

             Summary: ParquetWriteSupport.writeFields has 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


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