Skip to content

Commit

Permalink
Fix unset compression format panic
Browse files Browse the repository at this point in the history
Sets the default compression format to None.
  • Loading branch information
jbeisen committed Dec 14, 2023
1 parent 2e513f0 commit e319104
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arroyo-worker/src/connectors/filesystem/source/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ impl<K: Data, T: SchemaData> FileSystemSourceFunc<K, T> {
match &self.table {
TableType::Source {
compression_format, ..
} => compression_format.clone().unwrap(),
} => compression_format
.clone()
.unwrap_or(CompressionFormat::None),
TableType::Sink { .. } => unreachable!(),
}
}
Expand Down

0 comments on commit e319104

Please sign in to comment.