4paradigm / 4paradigm/OpenMLDB
feat: scalar subquery and correlated subquery
- 主要言語
- C++
- スター
- 1.7k
- フォーク
- 331
- 平均マージ
- 12日 12時間
- マージ済み PR(30日)
- 1
説明
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
)
```
コントリビューションガイド
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- sql
- 領域
- databases, machine-learning
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100