Skip to content

Mark 66 tests with invalid_syntax and parser_error#25

Merged
kyleconroy merged 3 commits intomainfrom
claude/check-missing-ast-json-p2W5R
Dec 23, 2025
Merged

Mark 66 tests with invalid_syntax and parser_error#25
kyleconroy merged 3 commits intomainfrom
claude/check-missing-ast-json-p2W5R

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

Document how to use the TsqlAstParser C# tool to generate ast.json files for test cases. Include prerequisites (.NET SDK, NuGet package), usage examples, and limitations (unsupported SQL Server 170 features, Fabric DW syntax, deprecated/error test cases).

Document how to use the TsqlAstParser C# tool to generate ast.json
files for test cases. Include prerequisites (.NET SDK, NuGet package),
usage examples, and limitations (unsupported SQL Server 170 features,
Fabric DW syntax, deprecated/error test cases).
These tests contain SQL that TSql160Parser cannot parse:
- SQL Server 170 features (VECTOR, AI, JSON enhancements)
- Fabric DW syntax (CLONE TABLE, CLUSTER BY)
- Deprecated SQL 80/90/100/110 syntax
- Intentional error test cases

Each metadata.json now includes:
- invalid_syntax: true
- parser_error: the actual parse error from ScriptDom

Also removed these 66 tests from skipped_tests_by_size.txt since
they cannot be implemented without a newer parser version.
@kyleconroy kyleconroy changed the title Check for missing AST JSON files in testdata Mark 66 tests with invalid_syntax and parser_error Dec 23, 2025
@kyleconroy kyleconroy marked this pull request as ready for review December 23, 2025 03:03
@kyleconroy kyleconroy merged commit aaa254d into main Dec 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants