Skip to content

Commit 16bf9b3

Browse files
fix for invalid parquet (#849)
delete invalid parquets where file size is less than the length of the parquet footer Fixes: #848
1 parent 2b09db6 commit 16bf9b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/storage/staging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ pub fn convert_disk_files_to_parquet(
280280
}
281281

282282
writer.close()?;
283-
if parquet_file.metadata().unwrap().len() == 0 {
283+
if parquet_file.metadata().unwrap().len() < parquet::file::FOOTER_SIZE as u64 {
284284
log::error!(
285285
"Invalid parquet file {:?} detected for stream {}, removing it",
286286
&parquet_path,

0 commit comments

Comments
 (0)