Skip to content

Commit

Permalink
test is_valid before reading column data (#14318)
Browse files Browse the repository at this point in the history
Fixes #14310.

Authors:
  - Ed Seidl (https://github.com/etseidl)

Approvers:
  - Vukasin Milovanovic (https://github.com/vuule)
  - David Wendt (https://github.com/davidwendt)

URL: #14318
  • Loading branch information
etseidl authored Oct 23, 2023
1 parent e8cf0eb commit 630982a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/io/parquet/page_enc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ __device__ uint8_t const* delta_encode(page_enc_state_s<0>* s,

cur_val_idx += nvals;

output_type v = s->col.leaf_column->element<I>(val_idx);
output_type v = is_valid ? s->col.leaf_column->element<I>(val_idx) : 0;
if (scale < 0) {
v /= -scale;
} else {
Expand Down

0 comments on commit 630982a

Please sign in to comment.