Skip to content

Commit

Permalink
fix: allow missing file stats in log replay
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed Aug 14, 2024
1 parent fd4ff7f commit e688ad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core/src/kernel/snapshot/replay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ fn map_batch(
) -> DeltaResult<RecordBatch> {
let mut new_batch = batch.clone();

let stats = ex::extract_and_cast_opt::<StringArray>(&batch, "add.stats");
let stats_parsed_col = ex::extract_and_cast_opt::<StructArray>(&batch, "add.stats_parsed");
if stats_parsed_col.is_none() {
if stats_parsed_col.is_none() && stats.is_some() {
new_batch = parse_stats(new_batch, stats_schema, config)?;
}

Expand Down

0 comments on commit e688ad4

Please sign in to comment.