| 78 | } |
| 79 | |
| 80 | Result<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 | |
| 91 | Result<std::shared_ptr<ArrowType>> MakeArrowTime64(const LogicalType& logical_type) { |
| 92 | const auto& time = checked_cast<const TimeLogicalType&>(logical_type); |