Remove test duplication in parquet statistics tets #6185
Labels
enhancement
Any new improvement worthy of a entry in the changelog
parquet
Changes to the parquet crate
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
When adding additional support to the statistics converter as @Kev1n8 did in #6181 the presence of two sets of tests is quite confusing about where to add tests for the new test
There are tests in both
Describe the solution you'd like
I would like to remove the rundant tests
Describe alternatives you've considered
I think the clearest alternateive is to move all the tests from https://github.com/apache/arrow-rs/blob/master/parquet/src/arrow/arrow_reader/statistics.rs to https://github.com/apache/arrow-rs/blob/master/parquet/tests/arrow_reader/statistics.rs
We should only move the non duplicated tests.
So that means something like:
arrow-rs/parquet/src/arrow/arrow_reader/statistics.rs
Lines 1513 to 1522 in f2de2cd
arrow-rs/parquet/src/arrow/arrow_reader/statistics.rs
Lines 1548 to 2113 in f2de2cd
arrow-rs/parquet/src/arrow/arrow_reader/statistics.rs
Lines 2115 to 2235 in f2de2cd
arrow-rs/parquet/src/arrow/arrow_reader/statistics.rs
Lines 2237 to 2258 in f2de2cd
Additional context
This duplication is a historical artifact of how this code was developed in DataFusion and then it got brought over when @efredine ported the work in #6046
The text was updated successfully, but these errors were encountered: