apache / apache/arrow-java

[Java] Avro to Arrow converter should reuse the same VectorSchemaRoot

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

描述

When originally reviewing the code I suggested a new VectorSchemaRoot on each call to the iterator.  After further discussions on the mailing list, it seems that this is an anit-pattern for working with VectorSchemaRoot, we should update the code to update a single VectorSchemaRoot.

 

After this change it should be easier to use Avro converter with other components of the library (i.e. filewriter) which also make use of a single VectorSchemaRoot.

**Reporter**: [Micah Kornfield](https://issues.apache.org/jira/browse/ARROW-9613) / @emkornfield

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

貢獻指南

開啟貢獻指南

研究方向

先找出 Java Avro 轉換器及其 iterator,接著閱讀每次呼叫如何建立並回傳 VectorSchemaRoot。當轉換器更新並重複使用同一個 VectorSchemaRoot,使其能夠與 filewriter 等元件搭配運作時,這項變更就完成了;如果有,請執行轉換器現有的測試。

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

評估

技術堆疊
java
領域
data
Issue 類型
重構
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

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

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