4paradigm / 4paradigm/OpenMLDB

window project over limit clause is not supported

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

since fdfd1f29c6b0ed46a822afdd459ea17f567ccd66, window project over limit clause is not supported. Because `LimitTableHandler` is not seekable: https://github.com/4paradigm/OpenMLDB/blob/5ac4667d0e71dc803ddbd04928bc4681b5ba84b6/hybridse/src/vm/catalog_wrapper.h#L444-L448

This kind SQL might not correct.
```sql
select id, count(col) over w from (select * from t1 limit 10) window w as (....)
```

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

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

Hướng nghiên cứu

The issue points to a specific commit and the LimitTableHandler in hybridse/src/vm/catalog_wrapper.h lines 444-448. First, understand why LimitTableHandler is not seekable and how it affects window functions over a LIMIT clause. Review the SQL example and the surrounding window function implementation. Check test files for window project and limit clause usage to see what 'done' looks like.

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

Đánh giá

Công nghệ
cpp, 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
Khá rõ ràng
Mức phù hợp với người mới
35/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.