| 116 | } |
| 117 | |
| 118 | Result<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 | |
| 127 | Result<std::shared_ptr<ArrowType>> FromByteArray( |
| 128 | const LogicalType& logical_type, const ArrowReaderProperties& reader_properties, |
no test coverage detected