DTStack / DTStack/dt-sql-parser

[Feature Request]: Support CTE statement entity collection

オープン
#445 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement improvement
主要言語
TypeScript
スター
394
フォーク
108
平均マージ
3日 21時間
マージ済み PR(30日)
2

説明

### Topic

Enhance existing features

### Description

The temporary result set created in a CTE statement can be collected.

```sql
WITH sales_data AS (
SELECT product_id, SUM(amount) AS total_sales
FROM orders
WHERE order_date >= '2023-01-01'
GROUP BY product_id
),
top_products AS (
SELECT product_id, total_sales
FROM sales_data
WHERE total_sales > 10000
)
SELECT p.name, tp.total_sales
FROM top_products tp
JOIN products p ON tp.product_id = p.id
ORDER BY tp.total_sales DESC;
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。