You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "rip-nsk (via GitHub)" <gi...@apache.org> on 2025/10/29 17:48:36 UTC

[I] [C++][Parquet] MinMax statistics for strings may be inaccurate after a merge [arrow]

rip-nsk opened a new issue, #47995:
URL: https://github.com/apache/arrow/issues/47995

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   TypedStatistics::Megre function disregards column chunks when the minimum value is an empty string (represented as {null, 0}) due to the following code:
   ```c++
   optional<std::pair<ByteArray, ByteArray>> CleanStatistic(
       std::pair<ByteArray, ByteArray> min_max, LogicalType::Type::type) {
     if (min_max.first.ptr == nullptr || min_max.second.ptr == nullptr) {
       return ::std::nullopt;
     }
     return min_max;
   }
   ```
   so both minimum and maximum values will be lost.
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org