apache / apache/arrow-java

[Java] Introduce BaseWriter.writeNull method

未關閉
#376 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Type: enhancement
主要語言
Java
星號
94
分支
152
平均合併
3 天 16 小時
30 天內合併 PR
11

描述

When a data set has null values in complex data type, it's hard to call proper writeNull method. Because writeNull is declared in AbstractFieldWriter, which is package local, not public. Moreover, UnionListWriter has no implementation of writeNull method, so it falls into AbstractFieldWriter.writeNull, which throws an IllegalArgumentException by default. So BaseWriter.writeNull is required to write null values inside of complex data types.

**Reporter**: [Teddy Choi](https://issues.apache.org/jira/browse/ARROW-2538) / @pudidic
#### PRs and other links:
- [GitHub Pull Request apache/arrow#1994](https://github.com/apache/arrow/pull/1994)

**Note**: *This issue was originally created as [ARROW-2538](https://issues.apache.org/jira/browse/ARROW-2538). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

貢獻指南

開啟貢獻指南

研究方向

先從 issue 中提到的 BaseWriter、AbstractFieldWriter 和 UnionListWriter 入口點開始,然後查看連結的 pull request 以了解先前的實作。當複雜資料型別中的 null 值可以使用公開的 BaseWriter.writeNull API,而不會落入預設的 IllegalArgumentException 時,即可視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
backend-api-design
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

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

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