Parenthesised column name in index filter expressions
还没有人认领这个 Issue。
评估
调研方向
使用 ScriptDom 重现报告的 SQL Server 语句,并将其解析行为与 SQL Server 进行比较。从 ScriptDom 的解析入口开始,确定筛选索引表达式中的带括号列在哪个位置被拒绝。完成标准是该有效语句能够成功解析,且不会导致其他索引筛选表达式出现回归。
由索引模型根据 Issue 内容生成。
描述
The following SQL is accepted as valid and works as intended by SQL Server.
CREATE TABLE DummyTable (
col int,
INDEX INDEX_ON_COL (col) WHERE (col) IS NOT NULL
)
However, ScriptDom cannot parse it due to the parenthesis around the column name, not 100% sure if this is an issue with SQL Server or with ScriptDom.
Version: Microsoft SQL Server 2019 (RTM-CU32) (KB5054833) - 15.0.4430.1 (X64) Feb 21 2025 17:28:26 Copyright (C) 2019 Microsoft Corporation Developer Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 22631: ) (Hypervisor)
- 主要语言
- GAP
- 星标
- 277
- 派生
- 43
- 平均合并
- 6 天 17 小时
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/SqlScriptDOM 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
microsoft/SqlScriptDOM#228 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
microsoft/SqlScriptDOM#183 ·
-
难度 4/5 3-5 天 新手友好度 56/100
microsoft/SqlScriptDOM#226 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 48/100
microsoft/SqlScriptDOM#225 ·
-
难度 3/5 1-2 天 新手友好度 58/100
microsoft/SqlScriptDOM#224 ·
查看 microsoft/SqlScriptDOM 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
oxc-project/oxc#26944 ·
-
todo:perf
难度 2/5 1-3 小时 新手友好度 84/100
-
bug
难度 2/5 半天 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 68/100
tenstorrent/tt-metal#57393 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 86/100
objectionary/eo#8894 ·