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

Function MakeArrowList

cpp/src/parquet/arrow/schema.cc:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82Result<std::shared_ptr<::arrow::DataType>> MakeArrowList(
83 std::shared_ptr<Field> field, const ArrowReaderProperties& props) {
84 switch (props.list_type()) {
85 case ::arrow::Type::LIST:
86 return ::arrow::list(std::move(field));
87 case ::arrow::Type::LARGE_LIST:
88 return ::arrow::large_list(std::move(field));
89 default:
90 return Status::TypeError("Invalid list_type: " +
91 ::arrow::internal::ToString(props.list_type()));
92 }
93}
94
95Status FieldToNode(const std::string& name, const std::shared_ptr<Field>& field,
96 const WriterProperties& properties,

Callers

nothing calls this directly

Calls 5

listFunction · 0.85
large_listFunction · 0.85
TypeErrorFunction · 0.50
ToStringFunction · 0.50
list_typeMethod · 0.45

Tested by

no test coverage detected