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

Function MakeArrowTime32

cpp/src/parquet/arrow/schema_internal.cc:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80Result<std::shared_ptr<ArrowType>> MakeArrowTime32(const LogicalType& logical_type) {
81 const auto& time = checked_cast<const TimeLogicalType&>(logical_type);
82 switch (time.time_unit()) {
83 case LogicalType::TimeUnit::MILLIS:
84 return ::arrow::time32(::arrow::TimeUnit::MILLI);
85 default:
86 return Status::TypeError(logical_type.ToString(),
87 " cannot annotate physical type Time32");
88 }
89}
90
91Result<std::shared_ptr<ArrowType>> MakeArrowTime64(const LogicalType& logical_type) {
92 const auto& time = checked_cast<const TimeLogicalType&>(logical_type);

Callers 1

FromInt32Function · 0.85

Calls 4

time32Function · 0.50
TypeErrorFunction · 0.50
time_unitMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected