A table operator handed a port that carried no rows loses every column
メンテナーはふだん 1 日以内に返信
@kz930 がすでに取り組んでいます。
2026年9月10日 から。
評価
この issue はまだ評価されていません。
説明
What happened?
A port can finish having carried no rows. An upstream filter that matches nothing still ends its channel, and DataProcessor calls on_finish either way. TableOperator then builds its table out of no tuples, and since Table.from_tuple_likes reads the column names off the tuples it is given, the operator is handed a DataFrame with no columns at all rather than the declared columns with no rows under them.
Every table operator that names one of its own columns raises KeyError on that column. Sort is the plainest case, but this reaches the visualization operators and any user-written UDFTableOperator as well. The expected behaviour is the one the schema already describes: the port's declared columns, empty.
How to reproduce?
Build a workflow of CSV File Scan, then Filter with a condition no row satisfies, then Sort on one of the scanned columns, and run it. Sort fails with KeyError naming the sort column, even though that column exists on the link.
The same thing shows without the engine, from the Python worker's own models. Table(Table.from_tuple_likes([])) reports columns: [], and calling sort_values(by=["x"]) on it raises KeyError: 'x'. Building the frame from the port's schema instead, through pyarrow.Table.from_pylist([], schema=schema.as_arrow_schema()).to_pandas(), gives columns ['x', 'name'] with dtypes int32 and object, and the same sort succeeds with shape (0, 2).
Part of #8325: the export's verification runs each operator on an empty table too, and a Python operator's engine-side run cannot be compared until this is fixed. The bug itself is not about the export, and reaches Sort, the visualization operators and any user-written UDFTableOperator in an ordinary run.
Version/Branch
1.4.0-incubating-SNAPSHOT (main)
Commit Hash (Optional)
1fbd34627
Relevant log output
KeyError: 'x'
- 主要言語
- Scala
- スター
- 316
- フォーク
- 192
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 135
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/texera のほかの issue
-
Search bar autocomplete stops working after a model appears in the suggestions対応中かも @aglinxinyuan が 11 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/texera#8700 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
apache/texera#8682 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
JSONL File Scan reads a JSON null as the text "null"対応中かも @CaroFernando が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/texera#8674 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
Missing workflow returns 500 from workflow type endpoint再び着手できるかも @VuMartin が 34 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/texera#8300 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
bug 🐞 Untriaged user issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
valkey-io/valkey-glide#7306 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
lichess-org/lila#21988 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
playframework/playframework#14336 ·
メンテナーはふだん 1 日以内に返信