Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
binayakd committed Nov 25, 2024
1 parent 939d325 commit e26ef50
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/io/test_pyarrow_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,12 +711,13 @@ def test_read_missing_statistics() -> None:

# expect only "strings" column values to be reflected in the
# upper_bound, lower_bound and null_value_counts props of datafile
string_col_idx = 1
assert len(datafile.lower_bounds) == 1
assert datafile.lower_bounds[1].decode() == "aaaaaaaaaaaaaaaa"
assert datafile.lower_bounds[string_col_idx].decode() == "aaaaaaaaaaaaaaaa"
assert len(datafile.upper_bounds) == 1
assert datafile.upper_bounds[1].decode() == "zzzzzzzzzzzzzzz{"
assert datafile.upper_bounds[string_col_idx].decode() == "zzzzzzzzzzzzzzz{"
assert len(datafile.null_value_counts) == 1
assert datafile.null_value_counts[1] == 1
assert datafile.null_value_counts[string_col_idx] == 1


# This is commented out for now because write_to_dataset drops the partition
Expand Down

0 comments on commit e26ef50

Please sign in to comment.