[JS] Values returned as undefined when arrow file bigger than 2gb
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, python, typescript
- 領域
- data
調査の方向性
JavaScript SDK のエントリーポイント RecordBatchReader.from、tableFromIPC、table.get(0).toArray() から始め、提供されている Python ジェネレーターと大容量ファイルリーダーの例を使って失敗を再現します。2GB-plus の Arrow ファイルが引き続き正しい行数を報告し、undefined ではなく値を返せば完了です。
索引モデルが issue の本文から書いたものです。
説明
Steps:
- Generate arrow file bigger than 2gb
import pyarrow as pa
nums1 = [42]
nums2 = [42.42]
mil = 1000000
for n in range(1, 140 * mil):
nums1.append(n)
nums2.append(1 / n)
arr1 = pa.array(nums1)
arr2 = pa.array(nums2)
schema = pa.schema([
pa.field('nums1', arr1.type),
pa.field('nums2', arr2.type),
])
with pa.OSFile('arraydata.arrow', 'wb') as sink:
with pa.ipc.new_file(sink, schema=schema) as writer:
batch = pa.record_batch([arr1, arr2], schema=schema)
writer.write(batch)
- Try to read it via the JS SDK
const fs = require("fs");
const { tableFromIPC, RecordBatchReader } = require("apache-arrow");
const filePath = "./arraydata.arrow";
const stream = fs.createReadStream(filePath);
const reader = RecordBatchReader.from(stream);
(async function () {
const table = await tableFromIPC(reader);
console.log("numRows", table.numRows);
console.log("first row", table.get(0).toArray());
})();
The code above prints:
numRows 140000000
first row [ undefined, undefined ]
numRows is correct, but the values are coming out as {}undefined{}.
Reporter: Denis Gursky
Note: This issue was originally created as ARROW-18007. Please see the migration documentation for further details.
- 主要言語
- TypeScript
- スター
- 114
- フォーク
- 35
- 平均マージ
- 13時間 35分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/arrow-js のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
The IPC reader accepts a column that is shorter than its RecordBatch, and fills the missing rows with nulls対応中かも @Sealdot が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
The IPC reader ignores Schema.endianness: a big-endian stream reads 1, 2, 3 as 16777216, 33554432, 50331648対応中かも @aniket-r2Dev2 が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
tableFromIPC loops with no end on a file whose RecordBatch block points at a DictionaryBatch対応中かも @aniket-r2Dev2 が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
apache/arrow-js#547 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
The stream reader drops a message of an unexpected type but not its body, and parses the body as the next messages対応中かも @Umer-Butt07 が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
apache/arrow-js の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
simstudioai/sim#10710 ·
メンテナーはふだん 1 日以内に返信
-
bug:new
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
callstackincubator/simlock#2088 ·
メンテナーはふだん 1 日以内に返信
-
Make the HTTP server's keep-alive and headers timeouts configurable対応中かも @mattgodbolt が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
compiler-explorer/compiler-explorer#9902 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信