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

Function FromInt64

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

Source from the content-addressed store, hash-verified

236}
237
238Result<std::shared_ptr<ArrowType>> FromInt64(
239 const LogicalType& logical_type, const ArrowReaderProperties& reader_properties) {
240 switch (logical_type.type()) {
241 case LogicalType::Type::INT:
242 return MakeArrowInt64(logical_type);
243 case LogicalType::Type::DECIMAL:
244 return MakeArrowDecimal(logical_type, reader_properties.smallest_decimal_enabled());
245 case LogicalType::Type::TIMESTAMP:
246 return MakeArrowTimestamp(logical_type);
247 case LogicalType::Type::TIME:
248 return MakeArrowTime64(logical_type);
249 case LogicalType::Type::NONE:
250 return ::arrow::int64();
251 default:
252 return Status::NotImplemented("Unhandled logical type ", logical_type.ToString(),
253 " for INT64");
254 }
255}
256
257Result<std::shared_ptr<ArrowType>> GetArrowType(
258 Type::type physical_type, const LogicalType& logical_type, int type_length,

Callers 1

GetArrowTypeFunction · 0.70

Calls 7

MakeArrowInt64Function · 0.85
MakeArrowDecimalFunction · 0.85
MakeArrowTimestampFunction · 0.85
MakeArrowTime64Function · 0.85
NotImplementedFunction · 0.50
typeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected