MCPcopy Create free account
hub / github.com/apache/arrow / FromISO8601

Method FromISO8601

cpp/src/arrow/scalar.cc:829–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827}
828
829Result<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
838SparseUnionScalar::SparseUnionScalar(ValueType value, int8_t type_code,
839 std::shared_ptr<DataType> type)

Callers

nothing calls this directly

Calls 5

ParseTimestampISO8601Function · 0.85
timestampFunction · 0.70
InvalidFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected