Skip to content

Commit

Permalink
use optional::operator*() rather than value() since the latter is hos…
Browse files Browse the repository at this point in the history
…t only
  • Loading branch information
etseidl committed Apr 11, 2024
1 parent e8485d9 commit ae6a3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/io/parquet/page_decode.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ inline __device__ bool setupLocalPageInfo(page_state_s* const s,
int32_t units = 0;
// Duration types are not included because no scaling is done when reading
if (s->col.logical_type.has_value()) {
auto const& lt = s->col.logical_type.value();
auto const& lt = *s->col.logical_type;
if (lt.is_timestamp_millis()) {
units = cudf::timestamp_ms::period::den;
} else if (lt.is_timestamp_micros()) {
Expand Down Expand Up @@ -1217,7 +1217,7 @@ inline __device__ bool setupLocalPageInfo(page_state_s* const s,
} else if (data_type == INT32) {
// check for smaller bitwidths
if (s->col.logical_type.has_value()) {
auto const& lt = s->col.logical_type.value();
auto const& lt = *s->col.logical_type;
if (lt.type == LogicalType::INTEGER) {
s->dtype_len = lt.bit_width() / 8;
} else if (lt.is_time_millis()) {
Expand Down

0 comments on commit ae6a3c0

Please sign in to comment.