Skip to content

Commit 849d346

Browse files
committed
fix: ci
1 parent 481aee9 commit 849d346

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

datafusion/core/src/execution/context/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,8 +858,8 @@ impl SessionContext {
858858

859859
// check if the file extension matches the expected extension
860860
for path in &table_paths {
861-
if !path.as_str().ends_with(&option_extension) {
862-
let file_name = path.prefix().filename().unwrap_or_default();
861+
let file_name = path.prefix().filename().unwrap_or_default();
862+
if !path.as_str().ends_with(&option_extension) && file_name.contains(".") {
863863
return exec_err!(
864864
"File '{file_name}' does not match the expected extension '{option_extension}'"
865865
);

datafusion/core/src/execution/context/parquet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ mod tests {
138138
}
139139

140140
#[tokio::test]
141-
async fn read_from_wrong_file_extension() -> Result<()> {
141+
async fn read_from_different_file_extension() -> Result<()> {
142142
let ctx = SessionContext::new();
143143

144144
// Make up a new dataframe.

0 commit comments

Comments
 (0)