4paradigm / 4paradigm/OpenMLDB
Support rows_range Window to slide with determined order
- 主要语言
- C++
- 星标
- 1.7k
- 派生
- 331
- 平均合并
- 12 天 12 小时
- 30 天内合并 PR
- 1
描述
**Is your feature request related to a problem? Please describe.**
OpenMLDB supports `ROWS_RANGE` syntax to define a window sliding by rows. However, when the dataset contains multiple rows sharing the same order value, the corresponding window rows will be variant since the random order of these rows.
In this issue, we are going to perform a window slide in a determined order so that the window and window aggregation results will be identical no matter how many times we perform window computation.
**Describe the solution you'd like**
- Assigned a determined row_id to the data rows
- Window slide based on the order column and the row_id automatically.
- ordered id should be associated with the online data coming order.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
贡献指南
调研方向
The issue is about the ROWS_RANGE window function in OpenMLDB. Look at the SQL parser and window execution logic, likely in src/parser or src/engine. Understand how rows are ordered and assigned row_ids. The goal is to make window results deterministic when rows share the same order value. Check existing tests for window functions to see the expected behavior.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- sql
- 领域
- databases, machine-learning
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100