From 6ec817c0ec884d8b8251a0db807ef3e3663942e9 Mon Sep 17 00:00:00 2001 From: Jin Shang Date: Mon, 11 Sep 2023 12:22:41 +0800 Subject: [PATCH] update to more specific tests --- cpp/src/arrow/compute/kernels/aggregate_test.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/src/arrow/compute/kernels/aggregate_test.cc b/cpp/src/arrow/compute/kernels/aggregate_test.cc index f57ac81d791e5..3f5a463fb8084 100644 --- a/cpp/src/arrow/compute/kernels/aggregate_test.cc +++ b/cpp/src/arrow/compute/kernels/aggregate_test.cc @@ -671,8 +671,9 @@ TEST(TestNullSumKernel, Basics) { TEST(TestSumKernel, Overflow) { for (const auto& ty : {uint64(), int64()}) { - auto scalar = ScalarFromJSON(ty, "10000000000000000"); - int64_t length = 100000; + auto scalar = ScalarFromJSON( + ty, ty->id() == Type::UINT64 ? "184467440737095517" : "92233720368547759"); + int64_t length = 100; auto array = MakeArrayFromScalar(*scalar, length).ValueOrDie(); ASSERT_RAISES(Invalid, SumChecked(array)); }