andishgar commented on issue #46226:
URL: https://github.com/apache/arrow/issues/46226#issuecomment-2829663700

   This suggestion aims to avoid repeatedly referencing an ArrayStatistics 
object during assignment by modifying the following code
   ```c++
   std::shared_ptr<ArrayStatistics> a = std::make_shard();
   a->max = ArrayStatistics::ValueType(1);
   a->min = ArrayStatistics::ValueType(1);
   ...
   // consider more attributes soon wil be added 
   ``` 
   To something like this
   ```
   std::shared_ptr<ArrayStatistics> a = 
ArrayStatisticsBuilder()<int>.max(1).min(2).Finish();
   ``` 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to