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

Function MakeMinMaxTypedScalar

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

Source from the content-addressed store, hash-verified

177
178template <typename CType, typename StatisticsType>
179Status MakeMinMaxTypedScalar(const StatisticsType& statistics,
180 std::shared_ptr<DataType> type,
181 std::shared_ptr<::arrow::Scalar>* min,
182 std::shared_ptr<::arrow::Scalar>* max) {
183 ARROW_ASSIGN_OR_RAISE(*min, ::arrow::MakeScalar(type, statistics.min()));
184 ARROW_ASSIGN_OR_RAISE(*max, ::arrow::MakeScalar(type, statistics.max()));
185 return Status::OK();
186}
187
188template <typename StatisticsType>
189Status MakeMinMaxIntegralScalar(const StatisticsType& statistics,

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected