Skip to content

Commit 8fa07b0

Browse files
xhochypitrou
authored andcommitted
Revert back to explicit json variable
1 parent 1575a74 commit 8fa07b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cpp/src/arrow/compute/kernels/aggregate_test.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,16 @@ TYPED_TEST(TestNumericSumKernel, SimpleSum) {
140140
ValidateSum<TypeParam>(&this->ctx_, "[0, 1, 2, 3, 4, 5]",
141141
Datum(std::make_shared<ScalarType>(static_cast<T>(5 * 6 / 2))));
142142

143-
ValidateSum<TypeParam>(&this->ctx_, {"[0, 1, 2, 3, 4, 5]"},
143+
std::vector<std::string> json{"[0, 1, 2, 3, 4, 5]"};
144+
ValidateSum<TypeParam>(&this->ctx_, json,
144145
Datum(std::make_shared<ScalarType>(static_cast<T>(5 * 6 / 2))));
145146

146-
ValidateSum<TypeParam>(&this->ctx_, {"[0, 1, 2]", "[3, 4, 5]"},
147+
json = {"[0, 1, 2]", "[3, 4, 5]"};
148+
ValidateSum<TypeParam>(&this->ctx_, json,
147149
Datum(std::make_shared<ScalarType>(static_cast<T>(5 * 6 / 2))));
148150

149-
ValidateSum<TypeParam>(&this->ctx_, {"[0, 1, 2]", "[]", "[3, 4, 5]"},
151+
json = {"[0, 1, 2]", "[]", "[3, 4, 5]"};
152+
ValidateSum<TypeParam>(&this->ctx_, json,
150153
Datum(std::make_shared<ScalarType>(static_cast<T>(5 * 6 / 2))));
151154

152155
const T expected_result = static_cast<T>(14);

0 commit comments

Comments
 (0)