Recursively replace all ARRAY types to LIST types within the given type.
140824 {
140825 switch (type.id()) {
140826 case LogicalTypeId::ARRAY: {
140827 return LogicalType::LIST(
ConvertToList(ArrayType::GetChildType(type)));
140828 }
140829 case LogicalTypeId::LIST:
140830 return LogicalType::LIST(
ConvertToList(ListType::GetChildType(type)));
140831 case LogicalTypeId::STRUCT: {
140832 auto children = StructType::GetChildTypes(type);
140833 for (auto &child : children) {
140835 }
140836 return LogicalType::STRUCT(children);
140837 }
140838 case LogicalTypeId::MAP: {
140841 return LogicalType::MAP(key_type,
value_type);
140842 }
140843 case LogicalTypeId::UNION: {
140844 auto children = UnionType::CopyMemberTypes(type);
140845 for (auto &child : children) {
140847 }
140848 return LogicalType::UNION(children);
140849 }
140850 default:
140851 return type;
140852 }
140853}
static DUCKDB_API LogicalType ConvertToList(const LogicalType &type)
Recursively replace all ARRAY types to LIST types within the given type.
Definition duckdb.cpp:140824