| 1350 | } |
| 1351 | |
| 1352 | void 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 | |
| 1362 | void AssertTakeTAT(const std::shared_ptr<Schema>& schm, |
| 1363 | const std::vector<std::string>& table_json, const std::string& filter, |
no test coverage detected