You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/04/26 18:43:25 UTC

[GitHub] [spark] WeichenXu123 opened a new pull request #24473: [SPARK-27534][SQL] Do not load `content` column in binary data source if it is not selected

WeichenXu123 opened a new pull request #24473: [SPARK-27534][SQL] Do not load `content` column in binary data source if it is not selected
URL: https://github.com/apache/spark/pull/24473
 
 
   ## What changes were proposed in this pull request?
   
   A follow-up task from SPARK-25348. To save I/O cost, Spark shouldn't attempt to read the file if users didn't request the `content` column. For example:
   ```
   spark.read.format("binaryFile").load(path).filter($"length" < 1000000).count()
   ```
   
   ## How was this patch tested?
   
   Unit test added.
   
   Please review http://spark.apache.org/contributing.html before opening a pull request.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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