4paradigm / 4paradigm/OpenMLDB

feat: scalar subquery and correlated subquery

Abierto
#3,714 0 comentarios 0 reacciones 1 asignado Reclamado por @aceforeverd Ver en GitHub
enhancement execute-engine high-priority sql
Lenguaje dominante
C++
Estrellas
1.7k
Forks
331
Merge medio
12 d 12 h
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
sql
Área
databases, machine-learning
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.