Skip to content

Commit 7ed1cae

Browse files
committed
add better error
1 parent 3a6abf1 commit 7ed1cae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

kernel/src/scan/log_replay.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,13 @@ impl ParallelizableLogReplayProcessor for ScanLogReplayProcessor {
488488
fn process_actions_batch(&self, actions_batch: ActionsBatch) -> DeltaResult<Self::Output> {
489489
let ActionsBatch {
490490
actions,
491-
is_log_batch: _,
491+
is_log_batch,
492492
} = actions_batch;
493+
require!(
494+
!is_log_batch,
495+
Error::generic("Parallel checkpoint processor may only be applied to checkpoint files")
496+
);
497+
493498
// Build an initial selection vector for the batch which has had the data skipping filter
494499
// applied. The selection vector is further updated by the deduplication visitor to remove
495500
// rows that are not valid adds.

0 commit comments

Comments
 (0)