| 1015 | |
| 1016 | template <typename IndexType, typename ValueType> |
| 1017 | void AssertIndexByteWidth(const std::shared_ptr<DataType>& value_type = |
| 1018 | TypeTraits<ValueType>::type_singleton()) { |
| 1019 | auto index_type = TypeTraits<IndexType>::type_singleton(); |
| 1020 | auto dict_type = |
| 1021 | checked_pointer_cast<DictionaryType>(dictionary(index_type, value_type)); |
| 1022 | std::unique_ptr<ArrayBuilder> builder; |
| 1023 | ASSERT_OK(MakeBuilder(default_memory_pool(), dict_type, &builder)); |
| 1024 | auto builder_dict_type = checked_pointer_cast<DictionaryType>(builder->type()); |
| 1025 | AssertTypeEqual(dict_type->index_type(), builder_dict_type->index_type()); |
| 1026 | } |
| 1027 | |
| 1028 | typedef ::testing::Types<Int8Type, Int16Type, Int32Type, Int64Type> IndexTypes; |
| 1029 |
nothing calls this directly
no test coverage detected