Skip to content

Commit

Permalink
Change fix length to uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Jun 17, 2024
1 parent 2ce1a61 commit 2f729d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/row/compare_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ TEST(KeyCompare, CompareColumnsToRowsLarge) {
// The var length column should be a little smaller than 2GB to WAR the capacity
// limitation in the builder.
constexpr int32_t var_length = two_gb / num_rows - 1;
const int32_t fixed_length = uint64()->byte_width();
const int32_t fixed_length = uint32()->byte_width();
// The overall size should be larger than 2GB.
ASSERT_GT((var_length + fixed_length) * num_rows, two_gb);

Expand All @@ -193,7 +193,7 @@ TEST(KeyCompare, CompareColumnsToRowsLarge) {

// A fixed length array containing random numbers.
ASSERT_OK_AND_ASSIGN(auto column_fixed_length,
::arrow::gen::Random(uint64())->Generate(num_rows));
::arrow::gen::Random(uint32())->Generate(num_rows));
// A var length array containing 'X' repeated var_length times.
ASSERT_OK_AND_ASSIGN(
auto column_var_length,
Expand Down

0 comments on commit 2f729d2

Please sign in to comment.