Smith-Cruise opened a new issue, #47905:
URL: https://github.com/apache/arrow/issues/47905
### Describe the enhancement requested
When the user called `ColumnChunkMetaData::statistics()`, it will call
`MakeStatistics()` function.
```c++
/// \brief Typed version of Statistics::Make
template <typename DType>
std::shared_ptr<TypedStatistics<DType>> MakeStatistics(
const ColumnDescriptor* descr, const std::string& encoded_min,
const std::string& encoded_max, int64_t num_values, int64_t null_count,
int64_t distinct_count, bool has_min_max, bool has_null_count,
bool has_distinct_count, std::optional<bool> is_min_value_exact,
std::optional<bool> is_max_value_exact,
::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) {
return std::static_pointer_cast<TypedStatistics<DType>>(
Statistics::Make(descr, encoded_min, encoded_max, num_values,
null_count,
distinct_count, has_min_max, has_null_count,
has_distinct_count,
is_min_value_exact, is_max_value_exact, pool));
}
```
Although the function supports memory pool as an input parameter, but the
caller does not pass memory_pool, which results in the user-defined memory pool
not being used when creating ColumnChunk's statistics.
### 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]