GitHub user rxin opened a pull request:

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

    [SPARK-18702][SQL] input_file_block_start and input_file_block_length

    ## What changes were proposed in this pull request?
    We currently have function input_file_name to get the path of the input 
file, but don't have functions to get the block start offset and length. This 
patch introduces two functions:
    
    1. input_file_block_start: returns the file block start offset, or -1 if 
not available.
    
    2. input_file_block_length: returns the file block length, or -1 if not 
available.
    
    ## How was this patch tested?
    Updated existing test cases in ColumnExpressionSuite that covered 
input_file_name to also cover the two new functions.


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

    $ git pull https://github.com/rxin/spark SPARK-18702

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

    https://github.com/apache/spark/pull/16133.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 #16133
    
----
commit 7713ebe2f2f2703544b964157f2ae60da48a22a0
Author: Reynold Xin <r...@databricks.com>
Date:   2016-12-04T05:40:21Z

    [SPARK-18702][SQL] input_file_block_start and input_file_block_length 
function

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to