Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Can't create a StructVector with a NullVector child

Đang mở
#690 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@jbonofre đang làm issue này rồi.

Từ ngày 24/3/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Type: bug
Describe the bug, including details regarding any error messages, version, and platform.

repro (against 18.1.0):

    @Test
    public void testStructWithNullVectorChild() {
        var field = new Field(
                "foo", FieldType.notNullable(ArrowType.Struct.INSTANCE),
                List.of(
                        new Field("null", FieldType.nullable(ArrowType.Null.INSTANCE), List.of())
                )
        );
        try (var al = new RootAllocator()) {
            try (var vec = new StructVector(field, al, null)) {
                // boom
            }
        }
    }

error:

Unknown type: NULL
java.lang.UnsupportedOperationException: Unknown type: NULL
	at org.apache.arrow.vector.complex.impl.NullableStructWriter.<init>(NullableStructWriter.java:279)
	at org.apache.arrow.vector.complex.StructVector.<init>(StructVector.java:74)
	at xtdb.api.XtdbHelloWorldTest.testStructWithNullVectorChild(XtdbHelloWorldTest.java:58)

Context here is that I'm actually calling vec.getTransferPair(field, al) on an existing vector, but the above is a more minimal repro

Cheers folks!

James

Ngôn ngữ chính
Java
Star
95
Fork
154
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
11

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/arrow-java

Tất cả issue của apache/arrow-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.