Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Parsing errors in Azure Synapse Analytics examples

未關閉
#126 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
csharp, sql

研究方向

從使用 TSql160Parser 的 C# 重現開始,將列出的 Azure Synapse 範例交給 parser 執行,以確認每個已回報的錯誤。使用連結的 Microsoft 文件比較支援的語法,然後驗證受影響的 DDL、查詢、安全性、交易和診斷範例都能在沒有錯誤的情況下完成剖析。

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

描述

We have listed out the examples in Azure Synapse Dedicated SQL Pool that are currently not supported in Microsoft SQL Parser ( TSql160Parser ) Version - 170.28.0

Microsoft documentation references :
Data Definition Language (DDL) statements
Sr no. Keyword Reference links Error Message
1 ALTER TABLE Link Option 'RESUMABLE' is not a valid index option in 'ALTER TABLE' statement.
2 CREATE DATABASE Link Incorrect syntax near 'MAXSIZE'.
3 CREATE MATERIALIZED VIEW AS SELECT Link Incorrect syntax near 'materialized'.
4 CREATE STATISTICS Link Incorrect syntax near 'ON'.
5 CREATE TABLE AS SELECT Link Incorrect syntax near 'FORMAT_OPTIONS'.
6 DROP TABLE Link Expected but did not find a closing quotation mark after the character string 't NULL
7 RENAME Link , Link Incorrect syntax near 'DATABASE'.
Query statements
Sr no. Keyword Reference links Error Message
1 WITH common_table_expression (Transact-SQL) Link Incorrect syntax near 'FORMAT_OPTIONS'.
2 FROM clause plus JOIN, APPLY, PIVOT (Transact-SQL) Link , Link ,Link Incorrect syntax near 'REDUCE'.
3 OPTION clause (Transact-SQL) Link , Link Expected BYPASS but encountered FORCE instead.
Security statements
Sr no. Keyword Reference links Error Message
1 BACKUP CERTIFICATE Link Incorrect syntax near '='.
2 CREATE CERTIFICATE Link Incorrect syntax near '='.
3 CREATE USER Link Incorrect syntax near 'ON'.
T-SQL language elements for dedicated SQL pool in Azure Synapse Analytics
Sr no. Keyword Reference links Error Message
1 Transactions Link Incorrect syntax near 'AUTOCOMMIT'.
2 CREATE DIAGNOSTICS SESSION Link Incorrect syntax near 'DIAGNOSTICS'.

Steps to reproduce

        static void Main(string[] args)
        {
            var script = @"<EXAMPLE_SCRIPT>";

            var parser = new TSql160Parser(true, 0);
            var fragment = parser.Parse(new StringReader(script), out var parseErrors);

            if (parseErrors.Count > 0)
            {
                Console.WriteLine(parseErrors[0].Message);
            }
        }
主要語言
GAP
星號
278
分支
46
平均合併
9 天 23 小時
30 天內合併 PR
2

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/SqlScriptDOM 的其他 Issue

查看 microsoft/SqlScriptDOM 的全部 Issue

相似的 Issue

更多 Compilers Issue

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

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