From 3b5db70198131c01eca951b4c5833d8570a622f5 Mon Sep 17 00:00:00 2001 From: Jonas Irgens Kylling Date: Tue, 3 Sep 2024 14:33:48 +0200 Subject: [PATCH] fix: stats is optional in add action --- crates/core/src/kernel/snapshot/parse.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/core/src/kernel/snapshot/parse.rs b/crates/core/src/kernel/snapshot/parse.rs index fc61187c00..f75744691e 100644 --- a/crates/core/src/kernel/snapshot/parse.rs +++ b/crates/core/src/kernel/snapshot/parse.rs @@ -83,7 +83,7 @@ pub(super) fn read_adds(array: &dyn ProvidesColumnByName) -> DeltaResult(arr, "size")?; let modification_time = ex::extract_and_cast::(arr, "modificationTime")?; let data_change = ex::extract_and_cast::(arr, "dataChange")?; - let stats = ex::extract_and_cast::(arr, "stats")?; + let stats = ex::extract_and_cast_opt::(arr, "stats"); let tags = ex::extract_and_cast_opt::(arr, "tags"); let dv = ex::extract_and_cast_opt::(arr, "deletionVector"); @@ -126,7 +126,8 @@ pub(super) fn read_adds(array: &dyn ProvidesColumnByName) -> DeltaResult