4paradigm / 4paradigm/OpenMLDB

`LongWindowOptimized` pass should select the best pre-aggr table if there are multiple

Đang mở
#2,461 0 bình luận 0 reaction 1 người được giao Được @zhanghaohit nhận Xem trên GitHub
bug execute-engine
Ngôn ngữ chính
C++
Star
1.7k
Fork
331
Merge trung bình
12 ngày 12 giờ
Pull request đã merge (30 ngày)
1

Mô tả

**Bug Description**
Currently the `LongWindowOptimized` pass just select the first one pre-aggr table and use it.

**Expected Behavior**
Two possible solutions:
- only create one pre-aggr table if all the meta is same expect the bucket size
- select the best pre-aggr if there are multiple pre-aggr tables exists for the same meta

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Look for the LongWindowOptimized pass in the codebase, likely in a query optimizer or planner module. Identify where pre-aggregation tables are selected. Examine the metadata comparison logic to understand how to choose the 'best' table based on bucket size or other criteria. Running existing tests related to window optimization will help verify the fix.

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

Đánh giá

Lĩnh vực
databases
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

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.