GitHub user aarondav opened a pull request:

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

    [SPARK-9397] DataFrame should provide an API to find source data files if 
applicable

    Certain applications would benefit from being able to inspect DataFrames 
that are straightforwardly produced by data sources that stem from files, and 
find out their source data. For example, one might want to display to a user 
the size of the data underlying a table, or to copy or mutate it.
    
    This PR exposes a `sourcePaths` method on DataFrame which attempts to 
discover the source data in a best-effort manner, by inspecting 
HadoopFsRelations and JSONRelations.

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

    $ git pull https://github.com/aarondav/spark paths

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

    https://github.com/apache/spark/pull/7717.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 #7717
    
----
commit 0acd3ad929f18706e05b5deba0e5acae8067c7a1
Author: Aaron Davidson <[email protected]>
Date:   2015-07-28T05:42:59Z

    [SPARK-9397] DataFrame should provide an API to find source data files if 
applicable
    
    Certain applications would benefit from being able to inspect DataFrames 
that are straightforwardly produced by data sources that stem from files, and 
find out their source data. For example, one might want to display to a user 
the size of the data underlying a table, or to copy or mutate it.
    
    This PR exposes a `sourcePaths` method on DataFrame which attempts to 
discover the source data in a best-effort manner, by inspecting 
HadoopFsRelations and JSONRelations.

----


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