Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Parenthesised column name in index filter expressions

未关闭
#130 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
sql
领域
compilers

调研方向

使用 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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/SqlScriptDOM 的其他 Issue

查看 microsoft/SqlScriptDOM 的全部 Issue

相似的 Issue

更多 Compilers Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。