marsupialtail commented on PR #13830:
URL: https://github.com/apache/arrow/pull/13830#issuecomment-1231080265

   We have a `FileFragment` object. In file_csv.cc the name for that object is 
usually `file`.  The `FileFragment` object has the `read_range`. It also has a 
`FileSource`. `OpenRange` is a method of the `FileSource`. 
   
   However the FileFragment object doesn't have an open method. 
`OpenReaderForRangeAsync` and `OpenReaderAsync` are called by the 
CsvFileFormat, who has access to the FIleFragment. So the CsvFileFormat needs 
to decide which method to call on the FileSource, by looking at the other field 
in the FileFragment.
   
   Is this clear? Or am I wrong.


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