Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Can't create a StructVector with a NullVector child

未關閉
#690 1 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@jbonofre 已經在處理了。

開始於 2025年3月24日。

評估

這個 Issue 還沒有評估資料。

描述

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

主要語言
Java
星號
95
分支
154
平均合併
2 天 10 小時
30 天內合併 PR
11

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

apache/arrow-java 的其他 Issue

查看 apache/arrow-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。