Skip to content

Commit 26eeeff

Browse files
MinhLA1410LeAnhMinh
and
LeAnhMinh
authoredNov 25, 2021
[Fix] Replace children() with fields(), because children() no longer works in Arrow library greater than v6.0.0 (#8)
Co-authored-by: LeAnhMinh <tsdv@localhost.localdomain>
1 parent 6a24715 commit 26eeeff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
*.bc
55
regression.diffs
66
regression.out
7-
results
7+
results

‎src/common.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ bytes_to_postgres_type(const char *bytes, arrow::DataType *arrow_type)
131131
arrow::Type::type
132132
get_arrow_list_elem_type(arrow::DataType *type)
133133
{
134-
auto children = type->children();
134+
auto children = type->fields();
135135

136136
Assert(children.size() == 1);
137137
return children[0]->type()->id();

‎src/parquet_impl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ extract_parquet_fields(const char *path, const char *dirname, Aws::S3::S3Client
659659
Oid pg_subtype;
660660
bool error = false;
661661

662-
if (type->children().size() != 1)
662+
if (type->fields().size() != 1)
663663
throw std::runtime_error("lists of structs are not supported");
664664

665665
subtype_id = get_arrow_list_elem_type(type.get());

0 commit comments

Comments
 (0)
Please sign in to comment.