Skip to content

Commit

Permalink
1. Add List type case to type::proxy::wrap.
Browse files Browse the repository at this point in the history
2. Fix indentation of Struct type case.
  • Loading branch information
kevingurney committed Oct 4, 2023
1 parent dcc53af commit c87f26b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion matlab/src/cpp/arrow/matlab/type/proxy/wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "arrow/matlab/type/proxy/date32_type.h"
#include "arrow/matlab/type/proxy/date64_type.h"
#include "arrow/matlab/type/proxy/string_type.h"
#include "arrow/matlab/type/proxy/list_type.h"
#include "arrow/matlab/type/proxy/struct_type.h"

namespace arrow::matlab::type::proxy {
Expand Down Expand Up @@ -65,7 +66,9 @@ namespace arrow::matlab::type::proxy {
return std::make_shared<Date64Type>(std::static_pointer_cast<arrow::Date64Type>(type));
case ID::STRING:
return std::make_shared<StringType>(std::static_pointer_cast<arrow::StringType>(type));
case ID::STRUCT:
case ID::LIST:
return std::make_shared<ListType>(std::static_pointer_cast<arrow::ListType>(type));
case ID::STRUCT:
return std::make_shared<StructType>(std::static_pointer_cast<arrow::StructType>(type));
default:
return arrow::Status::NotImplemented("Unsupported DataType: " + type->ToString());
Expand Down

0 comments on commit c87f26b

Please sign in to comment.