Iceberg data tables whose names end with a metadata-table name fall back to Spark
Maintainer thường phản hồi trong vòng 1 ngày
@aryan9948 đang làm issue này rồi.
Từ ngày 6/10/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
Hướng nghiên cứu
Issue chỉ đến CometScanRule.isIcebergMetadataTable và IcebergReflection.getTable(scan); hãy bắt đầu bằng cách tìm các điểm đầu vào này và kiểm tra cách xác định các bảng metadata. Bổ sung kiểm thử cho user_files, snapshots và order_history, cùng với một lần đọc thực tế bảng metadata .files. Hoàn thành khi tên bảng thông thường không còn kích hoạt cơ chế dự phòng và các bảng metadata thực tế vẫn kích hoạt cơ chế đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
CometScanRule.isIcebergMetadataTable matches the table name with endsWith against the metadata table names (files, snapshots, history, entries, manifests, partitions, ...) with no separator. Any ordinary Iceberg table whose name ends with one of those words is treated as a metadata table and falls back to Spark with Iceberg Metadata tables are not supported, for example user_files, order_history, daily_partitions, or a table named snapshots.
val name = scanExec.table.name().toLowerCase(Locale.ROOT)
metadataTableSuffix.exists(name.endsWith)
Steps to reproduce
CREATE TABLE cat.db.user_files (id INT, name STRING) USING iceberg;
INSERT INTO cat.db.user_files VALUES (1, 'a'), (2, 'b');
SELECT * FROM cat.db.user_files;
With spark.comet.scan.icebergNative.enabled=true and spark.comet.explain.fallback.enabled=true the scan is reported as:
BatchScan cat.db.user_files [COMET: Iceberg Metadata tables are not supported]
The same table named users gets CometIcebergNativeScan.
Expected behavior
Only real metadata tables (cat.db.user_files.files, ...metadata.json#files) should fall back.
Additional context
Proposed fix: recognize a metadata table by its Iceberg type. Every metadata table extends org.apache.iceberg.BaseMetadataTable, and the table is reachable through the existing IcebergReflection.getTable(scan). Fall back to a whole-segment name match (.files, #files) only when the table cannot be reached. Happy to open a PR with a test covering user_files, snapshots and order_history plus a real .files read.
- Ngôn ngữ chính
- Scala
- Star
- 1.3k
- Fork
- 383
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 413
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/datafusion-comet
-
ANSI integral SUM overflow reports "integer overflow" without Spark's try_add suggestionCó thể đã có người làm @0lai0 đã nhận 2 ngày trước. Đang mởarea:aggregation bug priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/datafusion-comet#6661 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
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 @Samearth17 đã nhận 3 ngày trước. Đ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
-
Casting to a struct type with repeated field names fails with "ArrowArray struct has 2 children (expected 1)"Có thể đã có người làm @Samearth17 đã nhận 3 ngày trước. Đang mởarea:expressions area:ffi bug good first issue priority:high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/datafusion-comet#6591 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
arrays_zip with two same-named inputs fails with "ArrowArray struct has 2 children (expected 1)"Có thể đã có người làm @mohitgurav20 đã nhận 10 ngày trước. Đang mởarea:expressions area:ffi bug priority:high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/datafusion-comet#6251 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci: a transient Maven Central failure in lint-java is reported as a scalafix violationCó thể đã có người làm @andygrove đã nhận 18 ngày trước. Đang mởarea:ci bug priority:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
apache/datafusion-comet#6060 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/datafusion-comet
Issue tương tự
-
C21 publishes `reactivemongo/core/SSL` as Java 23 bytecode — TLS connections fail on any JDK < 23Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ReactiveMongo/ReactiveMongo#1520 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
module: unknown type: bug/reported
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
OpenXiangShan/XiangShan#6688 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug 🐞 Untriaged user issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
valkey-io/valkey-glide#7306 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày