GitHub user tdas opened a pull request:

    https://github.com/apache/spark/pull/12879

    [SPARK-15103][SQL] Refactored FileCatalog class to allow StreamFileCatalog 
infer partitioning

    ## What changes were proposed in this pull request?
    
    File Stream Sink writes the list of written files in a metadata log. 
StreamFileCatalog reads the list of the files for processing. However 
StreamFileCatalog does not infer partitioning like HDFSFileCatalog.
    
    This PR enables that by refactoring HDFSFileCatalog to create an abstract 
class PartitioningAwareFileCatalog, that has all the functionality to infer 
partitions from a list of leaf files. HDFSFileCatalog extends 
PartitioningAwareFileCatalog by providing a list of leaf files from recursive 
directory scanning, StreamFileCatalog extends PartitioningAwareFileCatalog by 
providing a list of leaf files from the metadata log.
    
    ## How was this patch tested?
    
    (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
    
    
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tdas/spark SPARK-15103

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12879.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12879
    
----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to