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

Function CheckTakeXA

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

TakeXA = {TakeAAA, TakeCAC}

Source from the content-addressed store, hash-verified

1296
1297// TakeXA = {TakeAAA, TakeCAC}
1298void CheckTakeXA(const std::shared_ptr<DataType>& type, const std::string& values_json,
1299 const std::string& indices_json, const std::string& expected_json) {
1300 auto values = ArrayFromJSON(type, values_json);
1301 auto expected = ArrayFromJSON(type, expected_json);
1302 for (auto index_type : {int8(), uint32()}) {
1303 auto indices = ArrayFromJSON(index_type, indices_json);
1304 DoCheckTakeXA(values, indices, expected);
1305 }
1306}
1307
1308void CheckTakeXADictionary(std::shared_ptr<DataType> value_type,
1309 const std::string& dictionary_values,

Callers 3

TestNumericBasicsMethod · 0.85
CheckTakeXAMethod · 0.85
TEST_FFunction · 0.85

Calls 2

ArrayFromJSONFunction · 0.85
DoCheckTakeXAFunction · 0.85

Tested by

no test coverage detected