Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
don't check stats
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 12, 2022
1 parent 8216c75 commit bbd2b3a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/it/io/parquet/write.rs
Expand Up @@ -11,6 +11,17 @@ fn round_trip(
version: Version,
compression: CompressionOptions,
encodings: Vec<Encoding>,
) -> Result<()> {
round_trip_opt_stats(column, file, version, compression, encodings, true)
}

fn round_trip_opt_stats(
column: &str,
file: &str,
version: Version,
compression: CompressionOptions,
encodings: Vec<Encoding>,
check_stats: bool,
) -> Result<()> {
let (array, statistics) = match file {
"nested" => (
Expand Down Expand Up @@ -56,7 +67,9 @@ fn round_trip(

let (result, stats) = read_column(&mut Cursor::new(data), "a1")?;
assert_eq!(array.as_ref(), result.as_ref());
assert_eq!(statistics, stats);
if check_stats {
assert_eq!(statistics, stats);
}
Ok(())
}

Expand Down Expand Up @@ -363,12 +376,13 @@ fn list_large_binary_optional_v1() -> Result<()> {

#[test]
fn list_nested_inner_required_required_i64() -> Result<()> {
round_trip(
round_trip_opt_stats(
"list_nested_inner_required_required_i64",
"nested",
Version::V1,
CompressionOptions::Uncompressed,
vec![Encoding::Plain],
false,
)
}

Expand Down

0 comments on commit bbd2b3a

Please sign in to comment.