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

Function MakeArrowTimestamp

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

Source from the content-addressed store, hash-verified

116}
117
118Result<std::shared_ptr<ArrowType>> MakeArrowTimestamp(const LogicalType& logical_type) {
119 const auto& timestamp = checked_cast<const TimestampLogicalType&>(logical_type);
120 const bool utc_normalized = timestamp.is_adjusted_to_utc();
121 static const char* utc_timezone = "UTC";
122 ARROW_ASSIGN_OR_RAISE(auto unit, ArrowTimeUnitFromParquet(timestamp.time_unit()));
123 return utc_normalized ? ::arrow::timestamp(unit, utc_timezone)
124 : ::arrow::timestamp(unit);
125}
126
127Result<std::shared_ptr<ArrowType>> FromByteArray(
128 const LogicalType& logical_type, const ArrowReaderProperties& reader_properties,

Callers 2

FromFLBAFunction · 0.85
FromInt64Function · 0.85

Calls 2

timestampFunction · 0.50
is_adjusted_to_utcMethod · 0.45

Tested by

no test coverage detected