Skip to content

Commit

Permalink
Fix orc reader assert on create data_type again
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Jul 9, 2021
1 parent ecbec81 commit ea5771d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cpp/src/io/orc/reader_impl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,11 @@ std::unique_ptr<column> reader::impl::create_empty_column(const int32_t orc_col_
break;

case type_id::DECIMAL64:
scale = -static_cast<int32_t>(_metadata->get_types()[orc_col_id].scale.value_or(0));
default: out_col = make_empty_column(data_type(type, scale));
scale = -static_cast<int32_t>(_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;
Expand Down

0 comments on commit ea5771d

Please sign in to comment.