From c43107af77014a58827ed304cb5a6bd6b84795d8 Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Wed, 17 Jul 2024 22:39:55 -0700 Subject: [PATCH] Add PartialEq to ParquetMetaData and FileMetadata Prep for #6000 --- parquet/src/file/metadata/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parquet/src/file/metadata/mod.rs b/parquet/src/file/metadata/mod.rs index 40922d52bfd4..dab82ec5cd70 100644 --- a/parquet/src/file/metadata/mod.rs +++ b/parquet/src/file/metadata/mod.rs @@ -86,7 +86,7 @@ pub type ParquetOffsetIndex = Vec>>; /// /// [`parquet.thrift`]: https://github.com/apache/parquet-format/blob/master/src/main/thrift/parquet.thrift /// [`parse_metadata`]: crate::file::footer::parse_metadata -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub struct ParquetMetaData { /// File level metadata file_metadata: FileMetaData, @@ -222,7 +222,7 @@ pub type FileMetaDataPtr = Arc; /// File level metadata for a Parquet file. /// /// Includes the version of the file, metadata, number of rows, schema, and column orders -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub struct FileMetaData { version: i32, num_rows: i64,