houqp commented on a change in pull request #7210: URL: https://github.com/apache/arrow/pull/7210#discussion_r427605959
########## File path: rust/arrow/src/csv/reader.rs ########## @@ -87,19 +87,19 @@ fn infer_field_schema(string: &str) -> DataType { /// with `max_read_records` controlling the maximum number of records to read. /// /// If `max_read_records` is not set, the whole file is read to infer its schema. -fn infer_file_schema<R: Read + Seek>( +pub fn infer_file_schema<R: Read + Seek>( reader: &mut BufReader<R>, delimiter: u8, max_read_records: Option<usize>, - has_headers: bool, Review comment: yeah, i have been thinking about that as well, @andygrove what do you think? ---------------------------------------------------------------- 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: us...@infra.apache.org