4paradigm / 4paradigm/OpenMLDB

long window: count where op with a rows bucket based pre-agg table may produce incorrect result

Đang mở
#2,313 1 bình luận 0 reaction 1 người được giao Được @aceforeverd nhận Xem trên GitHub
execute-engine storage-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ả

**Describe the feature you'd like**

```sql
deploy dp options (long_windows = 'w1:3')
select count_where(.....
```

`3` as a rows based bucket size, since there is a extra filter key for pre-agg table added, rows in pre-agg table, where their
ts_begin and ts_end value, are not aligned.

currently, this op (`*_where with rows bucket`) is turned off in #2255 -> compile time error

**Additional context**

Add any other context or screenshots about the feature request here.

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

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

Hướng nghiên cứu

The issue mentions a pre-aggregation table with misaligned timestamps causing incorrect results for count_where operations with row-based buckets. Start by examining the code changes in #2255 that disabled this operation. Look for the long window implementation and pre-agg table handling, particularly around filter keys and bucket alignment. Running existing tests related to long windows and pre-agg tables will help understand the failure.

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

Đánh giá

Công nghệ
sql
Lĩnh vực
databases, machine-learning
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/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.