Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump org.apache.arrow:arrow-vector from 16.1.0 to 17.0.0 #2980

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parquet-arrow/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<url>https://parquet.apache.org</url>

<properties>
<arrow.version>16.1.0</arrow.version>
<arrow.version>17.0.0</arrow.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ public TypeMapping visit(org.apache.arrow.vector.types.pojo.ArrowType.FixedSizeL
return createListTypeMapping();
}

@Override
public TypeMapping visit(ArrowType.ListView type) {
return createListTypeMapping();
}

private ListTypeMapping createListTypeMapping() {
if (children.size() != 1) {
throw new IllegalArgumentException("list fields must have exactly one child: " + field);
Expand Down Expand Up @@ -249,11 +254,21 @@ public TypeMapping visit(ArrowType.LargeUtf8 largeUtf8) {
return primitive(BINARY, stringType());
}

@Override
public TypeMapping visit(ArrowType.Utf8View type) {
return primitive(BINARY, stringType());
}

@Override
public TypeMapping visit(Binary type) {
return primitive(BINARY);
}

@Override
public TypeMapping visit(ArrowType.BinaryView type) {
return primitive(BINARY);
}

@Override
public TypeMapping visit(ArrowType.LargeBinary largeBinary) {
return primitive(BINARY);
Expand Down Expand Up @@ -749,6 +764,11 @@ public TypeMapping visit(org.apache.arrow.vector.types.pojo.ArrowType.FixedSizeL
return createListTypeMapping(type);
}

@Override
public TypeMapping visit(ArrowType.ListView type) {
return createListTypeMapping(type);
}

private TypeMapping createListTypeMapping(ArrowType.ComplexType type) {
if (arrowField.getChildren().size() != 1) {
throw new IllegalArgumentException("Invalid list type: " + type);
Expand Down Expand Up @@ -818,6 +838,11 @@ public TypeMapping visit(ArrowType.LargeUtf8 largeUtf8) {
return primitive();
}

@Override
public TypeMapping visit(ArrowType.Utf8View type) {
return primitive();
}

@Override
public TypeMapping visit(Binary type) {
return primitive();
Expand All @@ -828,6 +853,11 @@ public TypeMapping visit(ArrowType.LargeBinary largeBinary) {
return primitive();
}

@Override
public TypeMapping visit(ArrowType.BinaryView type) {
return primitive();
}

@Override
public TypeMapping visit(Bool type) {
return primitive();
Expand Down