Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add Server-Side Scan Planning Support

Đang mở
#2,775 5 bình luận 5 reaction 1 người được giao Xem trên GitHub

@geruh đang làm issue này rồi.

Từ ngày 19/1/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Feature Request / Improvement

Now that Java has added server-side scan planning support PR #14480, I believe Python is a great place to integrate this functionality! We have all the building blocks and they are almost brought to completion. I'm creating this issue to track all of the tasks we need to drive it through

Context

We have some open PRs with some needed model changes, but we have pivoted to using our existing models and ensuring they're properly serializable with pydantic.

For example, initially we can work on:

  1. Expression Serialization to ensure BooleanExpression and subclasses serialize correctly for REST API. Related to @Fokko's work on #2750 and @rambleraptor #2435.

  2. DataFile Serialization to ensure we can properly deserialize the data/deletefiles from the server response. Open API uses kebab-case (file-format, file-path) but our models expect snake_case (file_format, file_path).

REST API Endpoints to Implement

Based on the Iceberg REST spec:

  1. POST /v1/{prefix}/namespaces/{namespace}/tables/{table}/plan - Submit scan for planning
  2. GET /v1/{prefix}/namespaces/{namespace}/tables/{table}/plan/{plan-id} - Fetch planning result
  3. DELETE /v1/{prefix}/namespaces/{namespace}/tables/{table}/plan/{plan-id} - Cancel planning
  4. POST /v1/{prefix}/namespaces/{namespace}/tables/{table}/tasks - Fetch scan tasks for a plan task

Tasks

Initially we can start with core sync planning and once that's in place we can add the async support as it looks like it exists in https://github.com/apache/iceberg/blob/main/core/src/test/java/org/apache/iceberg/rest/RESTCatalogAdapter.java

Core Sync Planning
  • Build on @Fokko's expression work to ensure Expression classes serialize properly with Pydantic.
    • #2783
  • Construct only plan Request/Response models for synchronous planning
  • Add support for REST scan to fetch scan tasks replicating DataScan behavior
  • Parse server response to FileScanTask objects (handle Data/DeleteFile construction)
  • Add plan_table_scan() methods
  • Add documentation
Full Scan planning support (Follow-up)

Complete the full scan planning API with async operations and pagination.

  • Add the rest of the models for async planning
  • Add support for endpoint 2 & 3 to RESTScan
  • Add endpoint 4 support to RestCatalog
  • Complete documentation with all scenarios
Ngôn ngữ chính
Python
Star
1.1k
Fork
589
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
70

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/iceberg-python

Tất cả issue của apache/iceberg-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.