From 0a7dcc3779a54b80871e4b27d7f491f62e7a9315 Mon Sep 17 00:00:00 2001 From: Marco Neumann Date: Mon, 14 Jun 2021 14:24:24 +0200 Subject: [PATCH] test: adjust read-write parquet test to newest test data --- parquet_file/src/storage_testing.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/parquet_file/src/storage_testing.rs b/parquet_file/src/storage_testing.rs index 6b0266aceb..35fa68e942 100644 --- a/parquet_file/src/storage_testing.rs +++ b/parquet_file/src/storage_testing.rs @@ -87,14 +87,14 @@ mod tests { // Now verify return results. This assert_batches_eq still works correctly without the metadata // We might modify it to make it include checking metadata or add a new comparison checking macro that prints out the metadata too let expected = vec![ - "+------------------+---------------+---------------------------+------------------------+----------------------+----------------------+----------------------+----------------------+-------------------+--------------------+----------------+----------------------------+", - "| foo_tag_nonempty | foo_tag_empty | foo_field_string_nonempty | foo_field_string_empty | foo_field_i64_normal | foo_field_i64_range | foo_field_u64_normal | foo_field_f64_normal | foo_field_f64_inf | foo_field_f64_zero | foo_field_bool | time |", - "+------------------+---------------+---------------------------+------------------------+----------------------+----------------------+----------------------+----------------------+-------------------+--------------------+----------------+----------------------------+", - "| foo | | foo | | -1 | -9223372036854775808 | 1 | 10.1 | 0 | 0 | true | 1970-01-01 00:00:00.000001 |", - "| bar | | bar | | 2 | 9223372036854775807 | 2 | 20.1 | inf | 0 | false | 1970-01-01 00:00:00.000002 |", - "| baz | | baz | | 3 | -9223372036854775808 | 3 | 30.1 | -inf | 0 | true | 1970-01-01 00:00:00.000003 |", - "| foo | | foo | | 4 | 9223372036854775807 | 4 | 40.1 | 1 | 0 | false | 1970-01-01 00:00:00.000004 |", - "+------------------+---------------+---------------------------+------------------------+----------------------+----------------------+----------------------+----------------------+-------------------+--------------------+----------------+----------------------------+", + "+----------------+---------------+-------------------+------------------+-------------------------+------------------------+----------------------------+---------------------------+----------------------+----------------------+-------------------------+------------------------+----------------------+----------------------+-------------------------+------------------------+----------------------+-------------------+--------------------+------------------------+-----------------------+-------------------------+------------------------+-----------------------+--------------------------+-------------------------+----------------------------+", + "| foo_tag_normal | foo_tag_empty | foo_tag_null_some | foo_tag_null_all | foo_field_string_normal | foo_field_string_empty | foo_field_string_null_some | foo_field_string_null_all | foo_field_i64_normal | foo_field_i64_range | foo_field_i64_null_some | foo_field_i64_null_all | foo_field_u64_normal | foo_field_u64_range | foo_field_u64_null_some | foo_field_u64_null_all | foo_field_f64_normal | foo_field_f64_inf | foo_field_f64_zero | foo_field_f64_nan_some | foo_field_f64_nan_all | foo_field_f64_null_some | foo_field_f64_null_all | foo_field_bool_normal | foo_field_bool_null_some | foo_field_bool_null_all | time |", + "+----------------+---------------+-------------------+------------------+-------------------------+------------------------+----------------------------+---------------------------+----------------------+----------------------+-------------------------+------------------------+----------------------+----------------------+-------------------------+------------------------+----------------------+-------------------+--------------------+------------------------+-----------------------+-------------------------+------------------------+-----------------------+--------------------------+-------------------------+----------------------------+", + "| foo | | | | foo | | | | -1 | -9223372036854775808 | | | 1 | 0 | | | 10.1 | 0 | 0 | NaN | NaN | | | true | | | 1970-01-01 00:00:00.000001 |", + "| bar | | bar | | bar | | bar | | 2 | 9223372036854775807 | 2 | | 2 | 18446744073709551615 | 2 | | 20.1 | inf | 0 | 2 | NaN | 20.1 | | false | false | | 1970-01-01 00:00:00.000002 |", + "| baz | | baz | | baz | | baz | | 3 | -9223372036854775808 | 3 | | 3 | 0 | 3 | | 30.1 | -inf | 0 | 1 | NaN | 30.1 | | true | true | | 1970-01-01 00:00:00.000003 |", + "| foo | | | | foo | | | | 4 | 9223372036854775807 | | | 4 | 18446744073709551615 | | | 40.1 | 1 | 0 | NaN | NaN | | | false | | | 1970-01-01 00:00:00.000004 |", + "+----------------+---------------+-------------------+------------------+-------------------------+------------------------+----------------------------+---------------------------+----------------------+----------------------+-------------------------+------------------------+----------------------+----------------------+-------------------------+------------------------+----------------------+-------------------+--------------------+------------------------+-----------------------+-------------------------+------------------------+-----------------------+--------------------------+-------------------------+----------------------------+", ]; assert_eq!(num_rows, actual_num_rows); assert_batches_eq!(expected.clone(), &record_batches);