From cd93a1e787a3d3a40b7a9f0e503c508e2646c563 Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Wed, 28 Aug 2024 12:40:04 -0500 Subject: [PATCH] revert sanity check --- parquet/src/column/writer/mod.rs | 4 ++-- parquet/src/file/metadata/writer.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parquet/src/column/writer/mod.rs b/parquet/src/column/writer/mod.rs index b3b45e734546..606ad462d143 100644 --- a/parquet/src/column/writer/mod.rs +++ b/parquet/src/column/writer/mod.rs @@ -756,8 +756,8 @@ impl<'a, E: ColumnValueEncoder> GenericColumnWriter<'a, E> { if null_page && self.column_index_builder.valid() { self.column_index_builder.append( null_page, - vec![], - vec![], + vec![0; 1], + vec![0; 1], self.page_metrics.num_page_nulls as i64, ); } else if self.column_index_builder.valid() { diff --git a/parquet/src/file/metadata/writer.rs b/parquet/src/file/metadata/writer.rs index 1fafd9779714..857b5997c8e1 100644 --- a/parquet/src/file/metadata/writer.rs +++ b/parquet/src/file/metadata/writer.rs @@ -593,8 +593,8 @@ mod tests { assert_eq!(left.compressed_size(), right.compressed_size()); assert_eq!(left.data_page_offset(), right.data_page_offset()); assert_eq!(left.statistics(), right.statistics()); - assert_eq!(left.offset_index_length(), right.offset_index_length()); - assert_eq!(left.column_index_length(), right.column_index_length()); + // assert_eq!(left.offset_index_length(), right.offset_index_length()); + // assert_eq!(left.column_index_length(), right.column_index_length()); assert_eq!( left.unencoded_byte_array_data_bytes(), right.unencoded_byte_array_data_bytes()