| 764 | } |
| 765 | |
| 766 | DictionaryScalar::DictionaryScalar(std::shared_ptr<DataType> type) |
| 767 | : internal::PrimitiveScalarBase(std::move(type)), |
| 768 | value{MakeNullScalar(checked_cast<const DictionaryType&>(*this->type).index_type()), |
| 769 | MakeArrayOfNull(checked_cast<const DictionaryType&>(*this->type).value_type(), |
| 770 | 0) |
| 771 | .ValueOrDie()} {} |
| 772 | |
| 773 | Result<std::shared_ptr<Scalar>> DictionaryScalar::GetEncodedValue() const { |
| 774 | const auto& dict_type = checked_cast<DictionaryType&>(*type); |
nothing calls this directly
no test coverage detected