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

Function NaiveCount

cpp/src/arrow/compute/kernels/aggregate_test.cc:888–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886using CountPair = std::pair<int64_t, int64_t>;
887
888static CountPair NaiveCount(const Array& array) {
889 CountPair count;
890
891 count.first = array.length() - array.null_count();
892 count.second = array.null_count();
893
894 return count;
895}
896
897void ValidateCount(const Array& input, CountPair expected) {
898 CountOptions non_null;

Callers 1

ValidateCountFunction · 0.85

Calls 2

lengthMethod · 0.45
null_countMethod · 0.45

Tested by

no test coverage detected