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

Function CheckTakeXCC

cpp/src/arrow/compute/kernels/vector_selection_test.cc:1342–1350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1340}
1341
1342void CheckTakeXCC(const Datum& values, const std::vector<std::string>& indices,
1343 const std::vector<std::string>& expected) {
1344 EXPECT_TRUE(values.is_array() || values.is_chunked_array());
1345 auto idx = ChunkedArrayFromJSON(int32(), indices);
1346 ASSERT_OK_AND_ASSIGN(auto actual, Take(values, Datum{idx}));
1347 ValidateOutput(actual);
1348 AssertChunkedEqual(*ChunkedArrayFromJSON(values.type(), expected),
1349 *actual.chunked_array());
1350}
1351
1352void AssertTakeRAR(const std::shared_ptr<Schema>& schm, const std::string& batch_json,
1353 const std::string& indices, const std::string& expected_batch) {

Callers 1

TEST_FFunction · 0.85

Calls 6

ChunkedArrayFromJSONFunction · 0.85
ValidateOutputFunction · 0.85
AssertChunkedEqualFunction · 0.85
is_arrayMethod · 0.80
chunked_arrayMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected