| 827 | } |
| 828 | |
| 829 | Result<TimestampScalar> TimestampScalar::FromISO8601(std::string_view iso8601, |
| 830 | TimeUnit::type unit) { |
| 831 | ValueType value; |
| 832 | if (internal::ParseTimestampISO8601(iso8601.data(), iso8601.size(), unit, &value)) { |
| 833 | return TimestampScalar{value, timestamp(unit)}; |
| 834 | } |
| 835 | return Status::Invalid("Couldn't parse ", iso8601, " as a timestamp"); |
| 836 | } |
| 837 | |
| 838 | SparseUnionScalar::SparseUnionScalar(ValueType value, int8_t type_code, |
| 839 | std::shared_ptr<DataType> type) |
nothing calls this directly
no test coverage detected