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

Function FromInt64

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

Source from the content-addressed store, hash-verified

245}
246
247Result<std::shared_ptr<ArrowType>> FromInt64(
248 const LogicalType& logical_type, const ArrowReaderProperties& reader_properties) {
249 switch (logical_type.type()) {
250 case LogicalType::Type::INT:
251 return MakeArrowInt64(logical_type);
252 case LogicalType::Type::DECIMAL:
253 return MakeArrowDecimal(logical_type, reader_properties.smallest_decimal_enabled());
254 case LogicalType::Type::TIMESTAMP:
255 return MakeArrowTimestamp(logical_type);
256 case LogicalType::Type::TIME:
257 return MakeArrowTime64(logical_type);
258 case LogicalType::Type::NONE:
259 return ::arrow::int64();
260 default:
261 return Status::NotImplemented("Unhandled logical type ", logical_type.ToString(),
262 " for INT64");
263 }
264}
265
266Result<std::shared_ptr<ArrowType>> GetArrowType(
267 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