From 71690ff7e67bfc707586c83b50bb8841552104e1 Mon Sep 17 00:00:00 2001 From: seidl Date: Mon, 23 Oct 2023 14:08:12 -0700 Subject: [PATCH] test is_valid before reading column data --- cpp/src/io/parquet/page_enc.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/io/parquet/page_enc.cu b/cpp/src/io/parquet/page_enc.cu index 1e4f061d2e0..9acafd50585 100644 --- a/cpp/src/io/parquet/page_enc.cu +++ b/cpp/src/io/parquet/page_enc.cu @@ -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(val_idx); + output_type v = is_valid ? s->col.leaf_column->element(val_idx) : 0; if (scale < 0) { v /= -scale; } else {