[ https://issues.apache.org/jira/browse/SPARK-20773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16012992#comment-16012992 ]
Apache Spark commented on SPARK-20773: -------------------------------------- User 'tpoterba' has created a pull request for this issue: https://github.com/apache/spark/pull/18005 > 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 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org