4paradigm / 4paradigm/OpenMLDB

Support rows_range Window to slide with determined order

Ouverte
#1,144 0 commentaires 0 réactions 3 personnes assignées Réclamée par @jingchen2222 Voir sur GitHub
enhancement
Langage dominant
C++
Étoiles
1.7k
Forks
331
Merge moyen
12 j 12 h
PR mergées (30 j)
1

Description

**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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
sql
Domaine
databases, machine-learning
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.