A table operator handed a port that carried no rows loses every column
Maintainer thường phản hồi trong vòng 1 ngày
@kz930 đang làm issue này rồi.
Từ ngày 10/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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'
- Ngôn ngữ chính
- Scala
- Star
- 316
- Fork
- 192
- Merge trung bình
- 3 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 124
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/texera
-
Search bar autocomplete stops working after a model appears in the suggestionsCó thể đã có người làm @aglinxinyuan đã nhận 8 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/texera#8700 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
apache/texera#8682 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
JSONL File Scan reads a JSON null as the text "null"Có thể đã có người làm @CaroFernando đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/texera#8674 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Missing workflow returns 500 from workflow type endpointCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/texera#8300 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/texera
Issue tương tự
-
Native from_json with a schema that repeats a field name fails with "ArrowArray struct has 2 children (expected 1)"Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea:expressions area:ffi bug good first issue priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
apache/datafusion-comet#6592 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
chipsalliance/chisel#5504 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Homebrew formula 2.1.26: 'cs completions bash' fails (exit 127) because bin/cs is not executableĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
smart-data-lake/smart-data-lake#1166 ·
Maintainer thường phản hồi trong vòng 1 ngày