From 6da8b6bad3306caf1a29ddad6954691f92ea7059 Mon Sep 17 00:00:00 2001 From: Jonas Irgens Kylling Date: Tue, 3 Sep 2024 16:41:40 +0200 Subject: [PATCH] Test which fails when stats is missing in checkpoint --- crates/core/src/kernel/arrow/mod.rs | 2 +- crates/core/tests/checkpoint_writer.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/core/src/kernel/arrow/mod.rs b/crates/core/src/kernel/arrow/mod.rs index 3ddd35560c..f7e238ebc0 100644 --- a/crates/core/src/kernel/arrow/mod.rs +++ b/crates/core/src/kernel/arrow/mod.rs @@ -212,7 +212,7 @@ pub(crate) fn delta_log_schema_for_table( size:Int64, modificationTime:Int64, dataChange:Boolean, - stats:Utf8, + // stats:Utf8, // uncomment to make test pass partitionValues, tags, deletionVector[ diff --git a/crates/core/tests/checkpoint_writer.rs b/crates/core/tests/checkpoint_writer.rs index 696e379569..9cd0729f1b 100644 --- a/crates/core/tests/checkpoint_writer.rs +++ b/crates/core/tests/checkpoint_writer.rs @@ -51,6 +51,7 @@ mod simple_checkpoint { let table = table_result; let files = table.get_files_iter().unwrap(); assert_eq!(12, files.count()); + assert_eq!(12, table.snapshot().unwrap().file_actions().unwrap().len()); } fn get_last_checkpoint_version(log_path: &Path) -> i64 {