Skip to content

Commit a931aff

Browse files
authored
GH-45073: [C++][Parquet] Fix generation of repetition levels for encryption test data (#45074)
### Rationale for this change This makes the test data readable by other Parquet implementations that validate the repetition levels. ### What changes are included in this PR? * Corrects the generation of encryption test files so that the int64 list columns correctly start lists with repetition level 0. * Updates the parquet-testing submodule to use the corrected files. ### Are these changes tested? Yes, covered by existing tests. ### Are there any user-facing changes? No * GitHub Issue: #45073 Authored-by: Adam Reeve <adreeve@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent ada8750 commit a931aff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cpp/src/parquet/encryption/test_encryption_util.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ ColumnData<Int64Type> GenerateSampleData<Int64Type>(int rows) {
116116
int64_t value = i * 1000 * 1000;
117117
value *= 1000 * 1000;
118118
int16_t definition_level = 1;
119-
int16_t repetition_level = 0;
119+
int16_t repetition_level = 1;
120120
if ((i % 2) == 0) {
121-
repetition_level = 1; // start of a new record
121+
repetition_level = 0; // start of a new record
122122
}
123123
int64_col.values.push_back(value);
124124
int64_col.definition_levels.push_back(definition_level);

0 commit comments

Comments
 (0)