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

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

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

Wenchen Fan resolved SPARK-23896.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Issue resolved by pull request 21004
[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
>            Assignee: Gengliang Wang
>            Priority: Major
>             Fix For: 2.4.0
>
>
> 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