[Feature Request]: [State] Add declarative per-key StateSpec TTL and state schema evolution

Đang mở
#41,310 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, python

Hướng nghiên cứu

Start with apache_beam.transforms.userstate.StateSpec and the listed state spec classes to understand their current configuration and usage. Then investigate how TTL and schema evolution would need to work across runners. Done means the requested expiration policies, schema-evolution ergonomics, and runner portability support are specified and implemented for the listed state specs.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What would you like to happen?

Add declarative ttl= configuration (processing-time or event-time expiration, update-on-write vs update-on-read-and-write, and visibility policy) and schema-evolution ergonomics to Beam StateSpec classes (ReadModifyWriteStateSpec, BagStateSpec, SetStateSpec, CombiningValueStateSpec, OrderedListStateSpec), plus runner portability support.

Motivation

Currently apache_beam.transforms.userstate.StateSpec only accepts (name, coder) with no built-in TTL. Spark 4.0+ transformWithState and Flink StateTtlConfig provide declarative per-key TTL and state schema evolution as first-class primitives, eliminating manual companion TimerSpec boilerplate and reducing OOM risk.

Ngôn ngữ chính
Java
Star
8.7k
Fork
4.8k
Merge trung bình
3 ngày 16 giờ
Pull request đã merge (30 ngày)
445

Chuẩn bị môi trường

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/beam

Tất cả issue của apache/beam

Issue tương tự

Thêm issue về Java

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.