-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
Description
Describe the bug, including details regarding any error messages, version, and platform.
Example: the "filter" function, when applied to a interval_month_data_nano input selects the primitive kernel and hits the DCHECK(false) << "Invalid values bit width"; assert.
arrow/cpp/src/arrow/compute/kernels/vector_selection_filter_internal.cc
Lines 456 to 481 in 565b957
| const int bit_width = values.type->bit_width(); | |
| RETURN_NOT_OK(PreallocatePrimitiveArrayData(ctx, output_length, bit_width, | |
| allocate_validity, out_arr)); | |
| switch (bit_width) { | |
| case 1: | |
| PrimitiveFilterImpl<BooleanType>(values, filter, null_selection, out_arr).Exec(); | |
| break; | |
| case 8: | |
| PrimitiveFilterImpl<UInt8Type>(values, filter, null_selection, out_arr).Exec(); | |
| break; | |
| case 16: | |
| PrimitiveFilterImpl<UInt16Type>(values, filter, null_selection, out_arr).Exec(); | |
| break; | |
| case 32: | |
| PrimitiveFilterImpl<UInt32Type>(values, filter, null_selection, out_arr).Exec(); | |
| break; | |
| case 64: | |
| PrimitiveFilterImpl<UInt64Type>(values, filter, null_selection, out_arr).Exec(); | |
| break; | |
| default: | |
| DCHECK(false) << "Invalid values bit width"; | |
| break; | |
| } | |
| return Status::OK(); | |
| } |
Component(s)
C++