| 141 | } |
| 142 | |
| 143 | std::optional<int64_t> EffectiveSliceStop(const ListSliceOptions& opts, |
| 144 | const BaseListType& input_type) { |
| 145 | if (!opts.stop.has_value() && input_type.id() == Type::FIXED_SIZE_LIST) { |
| 146 | return checked_cast<const FixedSizeListType&>(input_type).list_size(); |
| 147 | } |
| 148 | return opts.stop; |
| 149 | } |
| 150 | |
| 151 | Result<TypeHolder> ListSliceOutputType(const ListSliceOptions& opts, |
| 152 | const BaseListType& input_list_type) { |
no test coverage detected