Can't create a StructVector with a NullVector child
@jbonofre 已經在處理了。
開始於 2025年3月24日。
評估
這個 Issue 還沒有評估資料。
描述
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/arrow-java 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 74/100
apache/arrow-java#1261 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
apache/arrow-java#1236 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
apache/arrow-java#1230 ·
-
Type: bug
難度 2/5 1-3 小時 新手友好度 85/100
apache/arrow-java#1205 ·
-
Type: bug
難度 2/5 1-3 小時 新手友好度 68/100
apache/arrow-java#1196 · 1 則留言 ·
查看 apache/arrow-java 的全部 Issue
相似的 Issue
-
documentation
難度 2/5 1-3 小時 新手友好度 65/100
inu-appcenter/memorIN-backend#288 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
-
frontend maui-pilot pilot-ask question
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
area/plugin
難度 2/5 1-3 小時 新手友好度 75/100
kestra-io/plugin-kestra#190 ·