DTStack / DTStack/dt-sql-parser

[Feature Request]: Support CTE statement entity collection

未關閉
#445 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement improvement
主要語言
TypeScript
星號
394
分支
108
平均合併
3 天 21 小時
30 天內合併 PR
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 未提供檔案、測試或進入點。首先定位現有的實體集合處理邏輯,以及針對所示 SQL 形式的 CTE 解析;完成的標準應是能夠收集由 CTE 陳述式建立的暫存結果集。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
sql, typescript
領域
compilers
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。