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

Function MakeArrowInt64

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

Source from the content-addressed store, hash-verified

67}
68
69Result<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
80Result<std::shared_ptr<ArrowType>> MakeArrowTime32(const LogicalType& logical_type) {
81 const auto& time = checked_cast<const TimeLogicalType&>(logical_type);

Callers 1

FromInt64Function · 0.85

Calls 4

TypeErrorFunction · 0.50
bit_widthMethod · 0.45
is_signedMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected