Skip to content

Commit

Permalink
Bump org.apache.arrow:arrow-vector from 16.1.0 to 17.0.0 (apache#2980)
Browse files Browse the repository at this point in the history
* Bump org.apache.arrow:arrow-vector from 16.1.0 to 17.0.0

Bumps [org.apache.arrow:arrow-vector](https://github.com/apache/arrow) from 16.1.0 to 17.0.0.
- [Release notes](https://github.com/apache/arrow/releases)
- [Commits](apache/arrow@r-16.1.0...go/v17.0.0)

---
updated-dependencies:
- dependency-name: org.apache.arrow:arrow-vector
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix ci

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gang Wu <[email protected]>
  • Loading branch information
dependabot[bot] and wgtmac authored Nov 4, 2024
1 parent 72520d2 commit bdc9346
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
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

0 comments on commit bdc9346

Please sign in to comment.