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

Function AssertTakeRAR

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

Source from the content-addressed store, hash-verified

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) {
1354 for (auto index_type : {int8(), uint32()}) {
1355 ASSERT_OK_AND_ASSIGN(auto actual, TakeRAR(schm, batch_json, indices, index_type));
1356 ValidateOutput(actual);
1357 ASSERT_BATCHES_EQUAL(*RecordBatchFromJSON(schm, expected_batch),
1358 *actual.record_batch());
1359 }
1360}
1361
1362void AssertTakeTAT(const std::shared_ptr<Schema>& schm,
1363 const std::vector<std::string>& table_json, const std::string& filter,

Callers 1

TESTFunction · 0.85

Calls 2

ValidateOutputFunction · 0.85
RecordBatchFromJSONFunction · 0.85

Tested by

no test coverage detected