From ea5771de2f0bd12d46a6aa25dc7fc525856816e1 Mon Sep 17 00:00:00 2001 From: davidwendt Date: Fri, 9 Jul 2021 11:10:04 -0400 Subject: [PATCH] Fix orc reader assert on create data_type again --- cpp/src/io/orc/reader_impl.cu | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cpp/src/io/orc/reader_impl.cu b/cpp/src/io/orc/reader_impl.cu index 9d7e82f0281..ac9e444ee6e 100644 --- a/cpp/src/io/orc/reader_impl.cu +++ b/cpp/src/io/orc/reader_impl.cu @@ -835,8 +835,11 @@ std::unique_ptr reader::impl::create_empty_column(const int32_t orc_col_ break; case type_id::DECIMAL64: - scale = -static_cast(_metadata->get_types()[orc_col_id].scale.value_or(0)); - default: out_col = make_empty_column(data_type(type, scale)); + scale = -static_cast(_metadata->get_types()[orc_col_id].scale.value_or(0)); + out_col = make_empty_column(data_type(type, scale)); + break; + + default: out_col = make_empty_column(data_type(type)); } return out_col;