saikrishna1-bidgely opened a new pull request, #5025:
URL: https://github.com/apache/arrow-datafusion/pull/5025

   The `read_csv`, `read_parquet`, `read_json` and `read_avro` methods can not 
use a single method to read the locations.
   
   # Which issue does this PR close?
   Closes #5024.
   
   # Rationale for this change
   This will make for a simpler code in #4908.
   
   # What changes are included in this PR?
   Implemented a new trait `ReadOptions`. The code for method 
`to_listing_options` has been moved from the respective structs into this 
trait. Also the code from `read_csv/json/avro/parquet` to get the resolved 
schema has been moved here in `get_resolved_schema`.
   Once this trait is implemented, the remaining code in the methods 
`read_csv/json/avro/parquet` is the same and has been moved to a private method.
   
   # Are these changes tested?
   This is only a refactor and the existing tests should cover the refactored 
code.
   
   # Are there any user-facing changes?
   No


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to