Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H committed Nov 3, 2023
1 parent 5f751b7 commit 744006f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions datafusion/core/src/execution/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ impl SessionContext {

// check if the file extension matches the expected extension
for path in &table_paths {
if !path.as_str().ends_with(&option_extension) {
let file_name = path.prefix().filename().unwrap_or_default();
let file_name = path.prefix().filename().unwrap_or_default();
if !path.as_str().ends_with(&option_extension) && file_name.contains('.') {
return exec_err!(
"File '{file_name}' does not match the expected extension '{option_extension}'"
);
Expand Down
2 changes: 1 addition & 1 deletion datafusion/core/src/execution/context/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ mod tests {
}

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

// Make up a new dataframe.
Expand Down

0 comments on commit 744006f

Please sign in to comment.