Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bolt/dwio/common/tests/utils/DataSetBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class DataSetBuilder {
if (counter % 100 < repeats) {
numbers->set(row, T(counter % repeats));
} else if (counter % 100 > 90 && row > 0) {
numbers->copy(numbers, row - 1, row, 1);
numbers->copy(numbers, row, row - 1, 1);
} else {
int64_t value;
if (rareFrequency && counter % rareFrequency == 0) {
Expand Down
4 changes: 4 additions & 0 deletions bolt/dwio/parquet/tests/reader/E2EFilterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,11 @@ TEST_F(E2EFilterTest, floatAndDouble) {
}

TEST_F(E2EFilterTest, shortDecimalDictionary) {
// decimal(8, 5) maps to 4 bytes FLBA in Parquet.
// decimal(10, 5) maps to 5 bytes FLBA in Parquet.
// decimal(17, 5) maps to 8 bytes FLBA in Parquet.
for (const auto& type : {
"shortdecimal_val:decimal(8, 5)",
"shortdecimal_val:decimal(10, 5)",
"shortdecimal_val:decimal(17, 5)",
}) {
Expand All @@ -373,9 +375,11 @@ TEST_F(E2EFilterTest, shortDecimalDirect) {
options_.enableDictionary = false;
options_.dataPageSize = 4 * 1024;

// decimal(8, 5) maps to 4 bytes FLBA in Parquet.
// decimal(10, 5) maps to 5 bytes FLBA in Parquet.
// decimal(17, 5) maps to 8 bytes FLBA in Parquet.
for (const auto& type : {
"shortdecimal_val:decimal(8, 5)",
"shortdecimal_val:decimal(10, 5)",
"shortdecimal_val:decimal(17, 5)",
}) {
Expand Down
Loading