4paradigm / 4paradigm/OpenMLDB

feat: scalar subquery and correlated subquery

Aperta
#3,714 0 commenti 0 reazioni 1 assegnatario Rivendicata da @aceforeverd Vedi su GitHub
enhancement execute-engine high-priority sql
Lingua principale
C++
Stelle
1.7k
Fork
331
Merge medio
12g 12h
PR unite (30g)
1

Descrizione

ref https://github.com/google/zetasql/blob/master/docs/subqueries.md

Currently only table subquery is supported, while in many cases, subquery inside expression is necessary.
E.g.
```sql
SELECT mascot
FROM Mascots
WHERE
NOT EXISTS(SELECT username FROM Players WHERE Mascots.team = Players.team);
```

or

```sql
SELECT id, agg_func(col1) over w from t1
window w as (
partition by col2 order by ts
rows between
(select max(col2) over w from t1 window w as(...) ) preceding
and current row
)
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

The issue references ZetaSQL's subqueries documentation. Look at the existing table subquery implementation in the codebase, likely in the SQL parser or query planner. Understand how expressions are currently evaluated and where scalar and correlated subqueries would need to be integrated. Check for existing tests related to subqueries to see the expected behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
sql
Ambito
databases, machine-learning
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.