fix: Return an empty write payload when Arrow conversion receives a zero-row Table

オープン 初心者向け
#6,796 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

まず _convert_arrow_fv_to_proto と _convert_arrow_odfv_to_proto を見つけ、次に通常の FeatureView と OnDemandFeatureView の変換を対象とする絞り込まれた回帰テストを調べます。0 行の pyarrow.Tables がバッチをインデックス参照せずに [] を返し、通常の変換は引き続きテストに合格することを確認します。

索引モデルが issue の本文から書いたものです。

説明

Both _convert_arrow_fv_to_proto and _convert_arrow_odfv_to_proto convert a pyarrow.Table by indexing table.to_batches()[0]. A valid zero-row Arrow table has no record batches, so either helper raises IndexError instead of returning the natural empty write payload ([]).\n\nThe public write APIs reject empty DataFrames, but these conversion helpers are also used on provider/remote paths and should handle their valid input consistently. Return early for zero-row Tables before accessing the first batch.\n\nA focused regression test covers normal FeatureView and OnDemandFeatureView conversion paths.

主要言語
Python
スター
7.4k
フォーク
1.5k
平均マージ
2日 6時間
マージ済み PR(30日)
107

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

feast-dev/feast のほかの issue

feast-dev/feast の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。