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

Function DataPointToDouble

cpp/src/arrow/compute/kernels/aggregate_quantile.cc:78–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77template <typename T>
78double DataPointToDouble(T value, const DataType&) {
79 return static_cast<double>(value);
80}
81double DataPointToDouble(const Decimal32& value, const DataType& ty) {
82 return value.ToDouble(checked_cast<const DecimalType&>(ty).scale());
83}

Callers 1

GetQuantileByInterpMethod · 0.85

Calls 2

ToDoubleMethod · 0.45
scaleMethod · 0.45

Tested by

no test coverage detected