gengliangwang opened a new pull request #23961: [SPARK-27049][SQL] Support 
handling partition values in the abstraction of file source V2
URL: https://github.com/apache/spark/pull/23961
 
 
   ## What changes were proposed in this pull request?
   
   In `FileFormat`, the method `buildReaderWithPartitionValues` appends the 
partition values to the end of the result returned by `buildReader`, so that 
for data sources like CSV/JSON/AVRO only need to implement `buildReader` to 
read a single file without taking care of partition values.
   
   This PR proposes to support handling partition values in file source v2 
abstraction by:
   1. Have two methods `buildReader` and `buildReaderWithPartitionValues` in 
`FilePartitionReaderFactory`, which have exactly the same meaning as they are 
in `FileFormat`
   2. Rename `buildColumnarReader` as `buildColumnarReaderWithPartitionValues` 
to make the naming consistent.
   
   ## How was this patch tested?
   
   Existing unit tests.
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to