| 121 | |
| 122 | template <typename T> |
| 123 | static Field convertStringToDecimalType(const Field & from, const DataTypeDecimal<T> & type) |
| 124 | { |
| 125 | const String & str_value = from.get<String>(); |
| 126 | T value = type.parseFromString(str_value); |
| 127 | return DecimalField<T>(value, type.getScale()); |
| 128 | } |
| 129 | |
| 130 | template <typename From, typename T> |
| 131 | static Field convertDecimalToDecimalType(const Field & from, const DataTypeDecimal<T> & type) |
no test coverage detected