This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new 16915b57f0 Add PartialEq to ParquetMetaData and FileMetadata (#6082)
16915b57f0 is described below
commit 16915b57f066875b650c44edf55a748c6e49c709
Author: Adrian Garcia Badaracco <[email protected]>
AuthorDate: Fri Jul 19 14:43:50 2024 -0700
Add PartialEq to ParquetMetaData and FileMetadata (#6082)
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 3722f2cbe4..1d338bb8ee 100644
--- a/parquet/src/file/metadata/mod.rs
+++ b/parquet/src/file/metadata/mod.rs
@@ -102,7 +102,7 @@ pub type ParquetOffsetIndex = Vec<Vec<Vec<PageLocation>>>;
///
/// [`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,
@@ -238,7 +238,7 @@ pub type FileMetaDataPtr = Arc<FileMetaData>;
/// 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,