Skip to content

Commit

Permalink
chore: add comment to method as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
timvw committed Jan 8, 2025
1 parent 6e7c546 commit d78cbed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datafusion/core/src/datasource/listing/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ impl ListingTableConfig {
}
}

///Returns a tupe of (file_extension, optional compression_extension)
///
/// For example a path ending with blah.test.csv.gz returns `("csv", Some("gz"))`
/// For example a path ending with blah.test.csv returns `("csv", None)`
fn infer_file_extension_and_compression_type(
path: &str,
) -> Result<(String, Option<String>)> {
Expand Down

0 comments on commit d78cbed

Please sign in to comment.