andishgar opened a new issue, #46226:
URL: https://github.com/apache/arrow/issues/46226

   ### Describe the enhancement requested
   
   Currently , We use the Following Api for making `ArrayStatistics`
   ```c++
     auto int32_array_data = ArrayFromJSON(int32(), "[1, null, 
-1]")->data()->Copy();
     int32_array_data->statistics = std::make_shared<ArrayStatistics>();
     int32_array_data->statistics->null_count = 1;
     int32_array_data->statistics->distinct_count = 2;
   ```
   I suggest adopting the builder design pattern` For ArrayStatistics (`like 
`parquet::WriterProperties::Builder`) to make the API a bit  simpler
   
   ### 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-unsubscr...@arrow.apache.org.apache.org

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

Reply via email to