| 1100 | } |
| 1101 | |
| 1102 | int32_t GetDecimalTypeScale(const std::shared_ptr<DataType>& decimal_type) { |
| 1103 | auto decimal128_type = std::dynamic_pointer_cast<Decimal128Type>(decimal_type); |
| 1104 | return decimal128_type->scale(); |
| 1105 | } |
| 1106 | |
| 1107 | int32_t GetDecimalTypePrecision(const std::shared_ptr<DataType>& decimal_type) { |
| 1108 | auto decimal128_type = std::dynamic_pointer_cast<Decimal128Type>(decimal_type); |