From d78cbed61950792a0ff33fb2c4f6c93039ed02a0 Mon Sep 17 00:00:00 2001 From: Tim Van Wassenhove Date: Wed, 8 Jan 2025 17:34:30 +0100 Subject: [PATCH] chore: add comment to method as suggested --- datafusion/core/src/datasource/listing/table.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datafusion/core/src/datasource/listing/table.rs b/datafusion/core/src/datasource/listing/table.rs index 7ac94e8d913b..832d8a65dd93 100644 --- a/datafusion/core/src/datasource/listing/table.rs +++ b/datafusion/core/src/datasource/listing/table.rs @@ -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)> {