| 275 | using value_type = Decimal128; |
| 276 | |
| 277 | explicit DecimalValueDecoder(const std::shared_ptr<DataType>& type, |
| 278 | const ConvertOptions& options, const TrieCache* trie_cache) |
| 279 | : ValueDecoder(type, options, trie_cache), |
| 280 | decimal_type_(internal::checked_cast<const DecimalType&>(*type_)), |
| 281 | type_precision_(decimal_type_.precision()), |
| 282 | type_scale_(decimal_type_.scale()) {} |
| 283 | |
| 284 | Status Decode(const uint8_t* data, uint32_t size, bool quoted, value_type* out) { |
| 285 | TrimWhiteSpace(&data, &size); |