Commits


Sutou Kouhei authored and GitHub committed fd1bf8e6886
GH-44579: [C++] Use array type to compute min/max statistics Arrow type (#45094) ### Rationale for this change `arrow::ArrayStatistics` uses raw C++ types such as `int64_t` and `std::string` for min/max types. We need to convert raw C++ types to Arrow types when we use `arrow::ArrayStatistics` for generating statistics array. (GH-45038) We can't map `std::string` to an Arrow type. Because it may be `arrow::binary()`, `arrow::utf8()` or something. ### What changes are included in this PR? Use `arrow::DataType` information of associated array when we convert `arrow::ArrayStatistics`'s min/max raw C++ types to Arrow types. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #44579 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>