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

Function MakeArrowInt64

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

Source from the content-addressed store, hash-verified

81}
82
83Result<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
94Result<std::shared_ptr<ArrowType>> MakeArrowTime32(const LogicalType& logical_type) {
95 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