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

Function MakeSameLength

cpp/src/arrow/array/diff_test.cc:778–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778void MakeSameLength(std::shared_ptr<Array>* a, std::shared_ptr<Array>* b) {
779 auto length = std::min((*a)->length(), (*b)->length());
780 *a = (*a)->Slice(0, length);
781 *b = (*b)->Slice(0, length);
782}
783
784TEST_F(DiffTest, CompareRandomStruct) {
785 for (auto null_probability : {0.0, 0.25}) {

Callers 1

TEST_FFunction · 0.85

Calls 2

lengthMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected