andishgar opened a new pull request, #47183:
URL: https://github.com/apache/arrow/pull/47183

   
   
   ### Rationale for this change
   
   Implement support for the `ARROW:distinct_count:approximate` statistics 
attribute.
   
   ### What changes are included in this PR?
   
   Changed the type of `arrow::ArrayStatistics::distinct_count` to support both 
`double` (for approximate values) and `int64_t` (for exact values).
   
   ### Are these changes tested?
   
   Yes, I ran the corresponding unit test.
   
   ### Are there any user-facing changes?
   
   Yes, the type of `arrow::ArrayStatistics::distinct_count` was changed from 
`std::optional<int64_t>` to `std::optional<std::variant<int64_t, double>>`.
   


-- 
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: github-unsubscr...@arrow.apache.org

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

Reply via email to