From 3d040f7d735a4a1fa4447fff1b194956834fc9ad Mon Sep 17 00:00:00 2001 From: Nick Lanham Date: Thu, 19 Dec 2024 14:19:24 -0800 Subject: [PATCH] need transform if column mapping is enabled --- kernel/src/scan/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/src/scan/mod.rs b/kernel/src/scan/mod.rs index c706d3f8d..23880d2fa 100644 --- a/kernel/src/scan/mod.rs +++ b/kernel/src/scan/mod.rs @@ -416,7 +416,9 @@ impl Scan { // Compute the static part of the transformation. This is `None` if no transformation is // needed (currently just means no partition cols, but will be extended for other transforms // as we support them) - let static_transform = if self.have_partition_cols { + let static_transform = if self.have_partition_cols + || self.snapshot.column_mapping_mode != ColumnMappingMode::None + { Some(Arc::new(Scan::get_static_transform(&self.all_fields))) } else { None