Skip to content

Commit ac1f877

Browse files
committed
relax parallelizable log replay processor
1 parent 7e33173 commit ac1f877

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

kernel/src/log_replay.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use crate::{DeltaResult, EngineData};
2121
use delta_kernel_derive::internal_api;
2222

2323
use std::collections::HashSet;
24+
use std::sync::Arc;
2425

2526
use tracing::debug;
2627

@@ -204,7 +205,8 @@ impl ActionsBatch {
204205
}
205206
}
206207

207-
pub(crate) trait ParallelizableLogReplayProcessor: LogReplayProcessor {
208+
pub(crate) trait ParallelizableLogReplayProcessor {
209+
type Output;
208210
fn process_actions_batch(&self, actions_batch: ActionsBatch) -> DeltaResult<Self::Output>;
209211
}
210212

kernel/src/scan/log_replay.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ pub(crate) fn get_scan_metadata_transform_expr() -> ExpressionRef {
484484
}
485485

486486
impl ParallelizableLogReplayProcessor for ScanLogReplayProcessor {
487+
type Output = <ScanLogReplayProcessor as LogReplayProcessor>::Output;
487488
fn process_actions_batch(&self, actions_batch: ActionsBatch) -> DeltaResult<Self::Output> {
488489
let ActionsBatch {
489490
actions,

0 commit comments

Comments
 (0)