From b2651b4801d690c40f7c829dd63a56e2584a628b Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Wed, 31 Jul 2024 09:29:18 -0500 Subject: [PATCH] fix loading in test by etseidl Co-authored-by: Ed Seidl --- parquet/src/file/writer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parquet/src/file/writer.rs b/parquet/src/file/writer.rs index 6021d59849d..1636042c9c0 100644 --- a/parquet/src/file/writer.rs +++ b/parquet/src/file/writer.rs @@ -2209,7 +2209,7 @@ mod tests { let data = buf.into_inner().freeze(); - let decoded_metadata = load_metadata_from_bytes(metadata.file_size, data).await; + let decoded_metadata = load_metadata_from_bytes(data.len(), data).await; assert_eq!(metadata.metadata, decoded_metadata); }