Skip to content

Commit 5c4d580

Browse files
committed
fix: check front, not filename
1 parent 684b8b1 commit 5c4d580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parseable/streams.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use super::{
7171
fn arrow_path_to_parquet(path: &Path, random_string: &str) -> Option<PathBuf> {
7272
let filename = path.file_stem()?.to_str()?;
7373
let (_, front) = filename.split_once('.')?;
74-
assert!(filename.contains('.'), "contains the delim `.`");
74+
assert!(front.contains('.'), "contains the delim `.`");
7575
let filename_with_random_number = format!("{front}.data.{random_string}.parquet");
7676
let mut parquet_path = path.to_owned();
7777
parquet_path.set_file_name(filename_with_random_number);

0 commit comments

Comments
 (0)