Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decoding of dictionary encoded FIXED_LEN_BYTE_ARRAY data in Parquet reader #15601

Merged
merged 10 commits into from
May 7, 2024
Prev Previous commit
Next Next commit
clean up test of dict length
  • Loading branch information
etseidl committed Apr 26, 2024
commit ce99d2e068b515f6c0a700c54671237947e8ce49
2 changes: 0 additions & 2 deletions cpp/src/io/parquet/page_decode.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
#pragma once

#include "error.hpp"
#include "io/parquet/parquet.hpp"
#include "io/utilities/block_utils.cuh"
#include "parquet_common.hpp"
#include "parquet_gpu.hpp"
#include "rle_stream.cuh"

Expand Down
2 changes: 1 addition & 1 deletion cpp/src/io/parquet/page_hdr.cu
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ CUDF_KERNEL void __launch_bounds__(128)
for (int i = 0; i < num_entries; i++) {
int len = 0;
if (ck->physical_type == FIXED_LEN_BYTE_ARRAY) {
if (cur < dict_size) {
if (cur + ck->type_length <= dict_size) {
len = ck->type_length;
pos = cur;
cur += len;
Expand Down
1 change: 0 additions & 1 deletion cpp/src/io/parquet/reader_impl_preprocess.cu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

#include "error.hpp"
#include "io/parquet/parquet_common.hpp"
#include "reader_impl.hpp"

#include <cudf/detail/iterator.cuh>
Expand Down