| 81 | } |
| 82 | |
| 83 | Result<std::shared_ptr<ArrowType>> MakeArrowInt64(const LogicalType& logical_type) { |
| 84 | const auto& integer = checked_cast<const IntLogicalType&>(logical_type); |
| 85 | switch (integer.bit_width()) { |
| 86 | case 64: |
| 87 | return integer.is_signed() ? ::arrow::int64() : ::arrow::uint64(); |
| 88 | default: |
| 89 | return Status::TypeError(logical_type.ToString(), |
| 90 | " cannot annotate physical type Int64"); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | Result<std::shared_ptr<ArrowType>> MakeArrowTime32(const LogicalType& logical_type) { |
| 95 | const auto& time = checked_cast<const TimeLogicalType&>(logical_type); |