spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gengliang Wang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-26871) File Source V2: avoid creating unnecessary FileIndex in the write path
Date Wed, 13 Feb 2019 15:51:00 GMT
Gengliang Wang created SPARK-26871:
--------------------------------------

             Summary: File Source V2: avoid creating unnecessary FileIndex in the write path
                 Key: SPARK-26871
                 URL: https://issues.apache.org/jira/browse/SPARK-26871
             Project: Spark
          Issue Type: Task
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Gengliang Wang


In https://github.com/apache/spark/pull/23383, the file source V2 framework is implemented.
 In the PR, FileIndex is created as a member of FileTable,  so that we can implement partition
pruning like https://github.com/apache/spark/commit/0f9fcabb4ac2e8afec14d010e86467372a85d334
in the future(As data source V2 catalog is under development, partition pruning is removed
from the PR)

However, after write path of file source V2 is implemented,  I find that a simple write will
create FileIndex, which is required by FileTable. This is a sort of regression.  
This PR is to make FileIndex as a lazy value in FileTable, so that we can avoid creating unnecessary
FileIndex in the write path.



--
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


Mime
View raw message