Skip to content

Commit 4fc77d7

Browse files
wgtmactolleybot
authored andcommitted
apacheGH-39444: refactor test case
1 parent c1b06e4 commit 4fc77d7

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎cpp/src/arrow/dataset/file_parquet_encryption_test.cc‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ using arrow::internal::checked_pointer_cast;
5151
namespace arrow {
5252
namespace dataset {
5353

54-
// Base class to test writing and reading encrypted dataset.
5554
class DatasetEncryptionTestBase : public ::testing::Test {
5655
public:
5756
// This function creates a mock file system using the current time point, creates a
@@ -235,16 +234,12 @@ TEST_F(DatasetEncryptionTest, ReadSingleFile) {
235234
ASSERT_EQ(checked_pointer_cast<Int64Array>(table->column(2)->chunk(0))->GetView(0), 1);
236235
}
237236

238-
// GH-39444: This test covers the case where parquet dataset scanner crashes when
239-
// processing encrypted datasets over 2^15 rows in multi-threaded mode.
240237
class LargeRowEncryptionTest : public DatasetEncryptionTestBase {
241238
public:
242239
// The dataset is partitioned using a Hive partitioning scheme.
243240
void PrepareTableAndPartitioning() override {
244-
// Specifically chosen to be greater than batch size for triggering prefetch.
245-
constexpr int kRowCount = 32769;
246-
247241
// Create a random floating-point array with large number of rows.
242+
constexpr int kRowCount = 32769;
248243
arrow::random::RandomArrayGenerator rand_gen(0);
249244
auto array = rand_gen.Float32(kRowCount, 0.0, 1.0, false);
250245
auto table_schema = schema({field("a", float32())});

0 commit comments

Comments
 (0)