parquet/file: a panic recovered in WriteBatch is not kept, so Close writes a footer for rows with no values
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by reading the WriteBatch error recovery and Close paths for column chunk writers, then compare how FlushCurrentPage errors are saved, as referenced in issues #1597 and #1621. Reproduce the supplied example and check the resulting row count and footer behavior; done means Close returns the recovered error and no footer is written.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug, including details regarding any error messages, version, and platform.
WriteBatch returns an error when it recovers a panic, but the error is not kept on the column, so every Close after it returns nil and the file ends up with a footer for rows that have no values. FlushCurrentPage errors are kept (#1597, #1621), recovered panics are not. This is the case @zeroshade noted in the #1621 review. On main:
root, _ := schema.NewGroupNode("schema", parquet.Repetitions.Required, schema.FieldList{
schema.NewInt32Node("col", parquet.Repetitions.Optional, -1),
}, -1)
var buf bytes.Buffer
props := parquet.NewWriterProperties(parquet.WithDictionaryDefault(false))
w := file.NewParquetWriter(&buf, root, file.WithWriterProps(props))
rg := w.AppendRowGroup()
col, _ := rg.NextColumn()
_, err := col.(*file.Int32ColumnChunkWriter).WriteBatch([]int32{1}, []int16{1, 1, 1}, nil)
fmt.Println(err) // unknown error type: runtime error: slice bounds out of range [:3] with capacity 1
fmt.Println(col.Close(), rg.Close(), w.Close()) // <nil> <nil> <nil>
r, _ := file.NewParquetReader(bytes.NewReader(buf.Bytes()))
fmt.Println(r.MetaData().NumRows()) // 3; reading the column back gives 0 rows and no error
Expected: Close returns the saved error and no footer is written, same as for a FlushCurrentPage error.
Component(s)
Parquet
- 主要言語
- Assembly
- スター
- 423
- フォーク
- 188
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 164
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/arrow-go のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/arrow-go#1591 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
arrow/compute: safe float to integer cast skips the truncation check in sliced arrays with nulls対応中かも @mansur-akhmadi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 1/100
メンテナーはふだん 1 日以内に返信
-
Type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
ipc: stream reader accepts an invalid flatbuffer schema and decimal precision 0対応中かも @AynSiddiqui が 7 日前に担当しました。 オープン
apache/arrow-go#1676 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
apache/arrow-go の issue をすべて見る
似ている issue
-
Fish Audio Live calls fail to start: `Unknown callback "onNotice"` from @fishaudio/agent-client対応中かも @NEAL3K が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
milind-soni/OpenMausBot#8345 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
w3c/feedvalidator#204 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
open-mmlab/mmcv#3352 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100