-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-36619: [Python] Parquet statistics string representation misleading (
#36626) ### Rationale for this change If `Statistics.has_distinct_count` is false, the printout still shows a `distinct_count` value (`0`). ### What changes are included in this PR? Update the `distinct_count` property of `Statistics` class to check for `has_distinct_count` value. ### Are these changes tested? The tests for `distinct_count` are already included in `test_parquet_column_statistics_api` and only needed to be updated. * Closes: #36619 Authored-by: AlenkaF <frim.alenka@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
- Loading branch information
Showing
2 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters