4paradigm / 4paradigm/OpenMLDB

window project over limit clause is not supported

未关闭
#2,457 2 条评论 0 个 reaction 已指派 1 人 已被 @aceforeverd 认领 在 GitHub 查看
enhancement execute-engine
主要语言
C++
星标
1.7k
派生
331
平均合并
12 天 12 小时
30 天内合并 PR
1

描述

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 (....)
```

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, sql
领域
databases, machine-learning
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。