You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/04/08 18:58:00 UTC

[jira] [Commented] (SPARK-23896) Improve PartitioningAwareFileIndex

    [ https://issues.apache.org/jira/browse/SPARK-23896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16429850#comment-16429850 ] 

Apache Spark commented on SPARK-23896:
--------------------------------------

User 'gengliangwang' has created a pull request for this issue:
https://github.com/apache/spark/pull/21004

> Improve PartitioningAwareFileIndex
> ----------------------------------
>
>                 Key: SPARK-23896
>                 URL: https://issues.apache.org/jira/browse/SPARK-23896
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.1
>            Reporter: Gengliang Wang
>            Priority: Major
>
> Currently `PartitioningAwareFileIndex` accepts an optional parameter `userPartitionSchema`. If provided, it will combine the inferred partition schema with the parameter.
> However,
> 1. to get the inferred partition schema, we have to create a temporary file index. 
> 2. to get `userPartitionSchema`, we need to  combine inferred partition schema with `userSpecifiedSchema` 
> Only after that, a final version of `PartitioningAwareFileIndex` is created.
>  
> This can be improved by passing `userSpecifiedSchema` to `PartitioningAwareFileIndex`.
> With the improvement, we can reduce redundant code and avoid parsing the file partition twice. 
>  



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

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