Sync repos: Release 180.37.3#214
Merged
Merged
Conversation
Syntax
CREATE SEMANTIC INDEX index_name
ON table_name (column_definition [,...n] )
WITH (index_option [, ...n])
[ON {FILEGROUP <filegroup_name> | DEFAULT}]
[;]
column_definition :: = column_name
[SEARCH_TYPE {vector | fulltext | hybrid}]
[TYPE COLUMN type_column_name]
[LANGUAGE language_term]
[CHUNK_USING(chunk_option [,...n] )]
chunk_option ::= {
TYPE = {fixed | sentence | paragraph chapter
| SIZE = character_count_per_chunk
| OVERLAP = character_overlap_percentage
}
index_option ::= {
EXTERNAL_MODEL = model_name [ (model_option) ]
[VECTOR_INDEX ( vector_index_option [,...n] )]
[FULLTEXT_STOPLIST = {OFF | SYSTEM | stoplist_name}]
[MAXDOP = degree_of_parallelism]
[DROP_EXISTING = { OFF | ON }]
}
model_option ::= {
PARAMETERS = json_config
}
vector_index_option ::= {
METRIC = {'cosine' | 'dot' | 'euclidean'}
| TYPE = 'diskann'
}
- [X] The [Common checklist](https://msdata.visualstudio.com/SQLToolsAndLibraries/_git/Common?path=/Templates/PR%20Checklist%20for%20SQLToolsAndLibraries.md&version=GBmain&_a=preview) has been reviewed and followed
- [X] Code changes are accompanied by appropriate unit tests
- [ ] Identified and included SMEs needed to review code changes
- [ ] Follow the [steps](https://msdata.visualstudio.com/SQLToolsAndLibraries/_wiki/wikis/SQLToolsAndLibraries.wiki/33838/Adding-or-Extending-TSql-support-in-Sql-Dom?anchor=make-the-changes-in) here to make changes in the code
- [X] Follow the [steps](https://msdata.visualstudio.com/SQLToolsAndLibraries/_wiki/wikis/SQLToolsAndLibraries.wiki/33838/Adding-or-Extending-TSql-support-in-Sql-Dom?anchor=to-extend-the-tests-do-the-following%3A) here to add new tests for your feature
- [ ] Update relevant documentation in the [wiki](https://dev.azure.com/msdata/SQLToolsAndLibraries/_wiki/wikis/SQLToolsAndLibraries.wiki) and the README.md file
Please provide any additional information that might be helpful for the reviewers
adding create semanic index feature
----
New feature implementation adding support for CREATE SEMANTIC INDEX statement in SQL Server's T-SQL parser (TSql180).
This PR implements comprehensive parsing and script generation support for the new CREATE SEMANTIC INDEX statement, which enables semantic indexing with vector search, full-text search, and hybrid search capabilities. The feature includes column-level options for search types, chunk...
… and its' UDF syntax # Pull Request Template for ScriptDom ## Description This PR adds support for a new intrinsic that we've been implementing in Fabric DataWarehouse: `invoke_external_api` and its' UDF syntax sugar which later must become the only supported syntax - `EXTERNAL FUNCTION` ## Code Change - [x] The [Common checklist](https://msdata.visualstudio.com/SQLToolsAndLibraries/_git/Common?path=/Templates/PR%20Checklist%20for%20SQLToolsAndLibraries.md&version=GBmain&_a=preview) has been reviewed and followed - [x] Code changes are accompanied by appropriate unit tests - [x] Identified and included SMEs needed to review code changes - [x] Follow the [steps](https://msdata.visualstudio.com/SQLToolsAndLibraries/_wiki/wikis/SQLToolsAndLibraries.wiki/33838/Adding-or-Extending-TSql-support-in-Sql-Dom?anchor=make-the-changes-in) here to make changes in the code ## Testing - [x] Follow the [steps](https://msdata.visualstudio.com/SQLToolsAndLibraries/_wiki/wikis/SQLToolsAndLibraries.wiki/33838/Adding-or-Extending-TSql-support-in-Sql-Dom?anchor=to-extend-the-tests-do-the-following%3A) here to add new tests for your feature ## Documentation - [x] Update relevant documentation in the [wiki](https://dev.azure.com/msdata/SQLToolsAndLibraries/_wiki/wikis/SQLToolsAndLibraries.wiki) and the README.md file - no changes requried ## Additional Information [AI and Extensibility.docx](https://microsoft.sharepoint.com/:w:/r/teams/AzurePolaris/_layouts/15/doc2.aspx?sourcedoc=%7B75BAC667-A870-4482-8A37-F80E6EC8FCE0%7D&file=AI%20and%20Extensibiliy.docx) `VARCHAR(MAX) invoke_external_api('functionSetName', 'functionName'[, ... args])` - invokes Fabric Function `functionName` in `functionSetName` where Function Set is `User Defined Functions` item in PowerBI Workspace. `CREATEA FUNCTION [schema].[localName] [RETURNS <type>] AS EXTERNAL FUNCTION functionSetName.functionName` is a DDL syntax used to create SQL UDF based on function from Function Set. The DML would be: `SELECT [schema].[localName](col1) FROM tbl`, which during expression tree transformation will become `invoke_external_api` ---- #### AI description (iteration 3) #### PR Classification New feature: Adding support for external function definitions and the `INVOKE_EXTERNAL_API` intrinsic function in Trident Data Warehouse (Fabric DW). #### PR Summary This PR introduces syntax support for creating external functions and invoking external APIs in SQL ScriptDom for Fabric DW. It enables defining function aliases to external function sets and calling them via a new intrinsic. - **`TSqlFabricDW.g`**: Added grammar rules for `CREATE/ALTER/CREATE OR ALTER FUNCTION ... AS EXTERNAL FUNCTION` statements and `INVOKE_EXTERNAL_API` function call syntax - **`Ast.xml`**: Defined new AST node types `ExternalFunctionStatement` (and variants) and `InvokeExternalApiFunctionCall` with their properties - **`SqlScriptGeneratorVisitor.ExternalFunctionStatement.cs`** and **`SqlScriptGeneratorVisitor.InvokeExternalApiFunction.cs`**: Implemen...
adding release notes for 180.37.3 ---- #### AI description (iteration 2) #### PR Classification This is a documentation update adding release notes for version 180.35.0 of Microsoft.SqlServer.TransactSql.ScriptDom. #### PR Summary This pull request adds comprehensive release notes documenting new features, bug fixes, and improvements in version 180.35.0 of the SQL Script DOM library. - `/release-notes/180/180.37.3.md`: Documents support for CREATE FUNCTION AS EXTERNAL FUNCTION in Microsoft Fabric Warehouse - `/release-notes/180/180.37.3.md`: Lists bug fixes for PERSIST_SAMPLE_PERCENT parsing, AlterTableAddTableElementStatement separator issues, and WindowDefinition whitespace handling - `/release-notes/180/180.37.3.md`: Notes improvements to comment preservation in SQL Server script generator and .NET SDK update to version 8.0.420 <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
ssreerama
approved these changes
Jun 17, 2026
dzsquared
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync repos: Release 180.37.3