MCPcopy Create free account
hub / github.com/apache/arrow / MakeMinMaxScalar

Function MakeMinMaxScalar

cpp/src/parquet/arrow/reader_internal.cc:170–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169template <typename CType, typename StatisticsType>
170Status MakeMinMaxScalar(const StatisticsType& statistics,
171 std::shared_ptr<::arrow::Scalar>* min,
172 std::shared_ptr<::arrow::Scalar>* max) {
173 *min = ::arrow::MakeScalar(static_cast<CType>(statistics.min()));
174 *max = ::arrow::MakeScalar(static_cast<CType>(statistics.max()));
175 return Status::OK();
176}
177
178template <typename CType, typename StatisticsType>
179Status MakeMinMaxTypedScalar(const StatisticsType& statistics,

Callers

nothing calls this directly

Calls 4

MakeScalarFunction · 0.85
OKFunction · 0.50
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected