Skip to content

Commit

Permalink
strip file:// off of the final_dir for local sinks. (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonrnewhouse authored and mwylde committed May 1, 2024
1 parent 532d056 commit 3577f04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/arroyo-connectors/src/filesystem/sink/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ pub struct LocalFileSystemWriter<V: LocalWriter> {

impl<V: LocalWriter> LocalFileSystemWriter<V> {
pub fn new(
final_dir: String,
mut final_dir: String,
table_properties: FileSystemTable,
config: OperatorConfig,
) -> TwoPhaseCommitterOperator<Self> {
if final_dir.starts_with("file://") {
final_dir = final_dir.trim_start_matches("file://").to_string();
}
// TODO: explore configuration options here
let tmp_dir = format!("{}/__in_progress", final_dir);
// make sure final_dir and tmp_dir exists
Expand Down
2 changes: 1 addition & 1 deletion crates/arroyo-controller/src/states/scheduling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ impl State for Scheduling {
arroyo_rpc::grpc::TableEnum::GlobalKeyValue => {
GlobalKeyedTable::committing_data(config.clone(), table_metadata)
}
arroyo_rpc::grpc::TableEnum::ExpiringKeyedTimeTable => todo!(),
arroyo_rpc::grpc::TableEnum::ExpiringKeyedTimeTable => None,
} {
committing_data
.entry(operator_id.clone())
Expand Down

0 comments on commit 3577f04

Please sign in to comment.