ARROW-2503: [Python] Prevent trailing space character for string statistics #1945
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The trailing space is added in
parquet-cpp.pyarrowcalls the functionFormatStatValuewhich adds the trailing space (https://github.com/apache/parquet-cpp/blob/master/src/parquet/types.cc#L52).https://issues.apache.org/jira/browse/PARQUET-1283 is about fixing this behavior. Once the corresponding PR is merged into
parquet-cppandpyarrowis synced, thetest_parquet.py:test_parquet_column_statistics_apiwill break forstr. This PR fixes that breakage.