| 67 | } |
| 68 | |
| 69 | Result<std::shared_ptr<ArrowType>> MakeArrowInt64(const LogicalType& logical_type) { |
| 70 | const auto& integer = checked_cast<const IntLogicalType&>(logical_type); |
| 71 | switch (integer.bit_width()) { |
| 72 | case 64: |
| 73 | return integer.is_signed() ? ::arrow::int64() : ::arrow::uint64(); |
| 74 | default: |
| 75 | return Status::TypeError(logical_type.ToString(), |
| 76 | " cannot annotate physical type Int64"); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | Result<std::shared_ptr<ArrowType>> MakeArrowTime32(const LogicalType& logical_type) { |
| 81 | const auto& time = checked_cast<const TimeLogicalType&>(logical_type); |