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

Function ValidateSelectK

cpp/src/arrow/compute/kernels/select_k_test.cc:65–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void ValidateSelectK(const Datum& datum, Array& select_k_indices, SortOrder order) {
66 ASSERT_TRUE(datum.is_arraylike());
67 ASSERT_OK_AND_ASSIGN(auto sorted_indices,
68 SortIndices(datum, SortOptions({SortKey("unused", order)})));
69
70 int64_t k = select_k_indices.length();
71 // head(k)

Callers 2

AssertSelectKArrayMethod · 0.85
AssertSelectKMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected