4paradigm / 4paradigm/OpenMLDB

select into and request mode will get multiple incorrect result

Ouverte
#3,971 1 commentaire 0 réactions 1 personne assignée Réclamée par @aceforeverd Voir sur GitHub
bug
Langage dominant
C++
Étoiles
1.7k
Forks
331
Merge moyen
12 j 12 h
PR mergées (30 j)
1

Description

**Bug Description**

Use the demo docker image.

Execute the following sql will get one correct data.

```
SELECT c1, c2, sum(c3) OVER w1 AS w1_c3_sum FROM demo_table1 WINDOW w1 AS (PARTITION BY demo_table1.c1 ORDER BY demo_table1.c6 ROWS BETWEEN 2 PRECEDING AND CURRENT ROW) CONFIG (execute_mode = 'request', values = ("aaa", 11, 22, 1.2, 1.3, 1635247427000, "2021-05-20"));
```

Execute the following sql will get multiple incorrect data.

```
SELECT c1, c2, sum(c3) OVER w1 AS w1_c3_sum FROM demo_table1 WINDOW w1 AS (PARTITION BY demo_table1.c1 ORDER BY demo_table1.c6 ROWS BETWEEN 2 PRECEDING AND CURRENT ROW) INTO outfile "online.csv" OPTIONS (header = false, mode = 'overwrite') CONFIG (execute_mode = 'request', values = ("aaa", 11, 22, 1.2, 1.3, 1635247427000, "2021-05-20"));
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

The issue involves a window function query producing incorrect results when combined with SELECT INTO OUTFILE in request mode. Start by examining the query execution path for request mode and the INTO OUTFILE handling in the codebase. Look for differences in result set generation or serialization between the two query forms. Run the provided SQL against the demo docker image to reproduce the issue, then trace through the relevant database engine modules.

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
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

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