| 98 | |
| 99 | template <typename Decimal> |
| 100 | typename DecimalConverter<Decimal>::GArrowType * |
| 101 | garrow_decimal_new_string(const gchar *data, GError **error, const gchar *tag) |
| 102 | { |
| 103 | auto arrow_decimal_result = Decimal::FromString(data); |
| 104 | if (garrow::check(error, arrow_decimal_result, tag)) { |
| 105 | auto arrow_decimal = std::make_shared<Decimal>(*arrow_decimal_result); |
| 106 | DecimalConverter<Decimal> converter; |
| 107 | return converter.new_raw(&arrow_decimal); |
| 108 | } else { |
| 109 | return NULL; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | template <typename Decimal> |
| 114 | typename DecimalConverter<Decimal>::GArrowType * |
nothing calls this directly
no test coverage detected