Skip to content

Commit 0d3ca95

Browse files
authored
fix: use file extension from passed options (#148)
1 parent 9d20d9b commit 0d3ca95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ impl SessionContextOrcExt for SessionContext {
127127
// SessionContext::_read_type
128128
let table_paths = table_paths.to_urls()?;
129129
let session_config = self.copied_config();
130-
let listing_options = ListingOptions::new(Arc::new(OrcFormat)).with_file_extension(".orc");
130+
let listing_options =
131+
ListingOptions::new(Arc::new(OrcFormat)).with_file_extension(options.file_extension);
131132

132133
let option_extension = listing_options.file_extension.clone();
133134

0 commit comments

Comments
 (0)