You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for Vector index syntax in T-SQL parser with separate index option classes (#150)
* Initial plan
* Implement vector index support - add grammar, AST classes, and script generators
Co-authored-by: llali <[email protected]>
* Consolidate vector index options and remove duplicate Vector constant
Co-authored-by: llali <[email protected]>
* Revert to original design with separate VectorMetricIndexOption and VectorTypeIndexOption classes
Co-authored-by: llali <[email protected]>
* fixing the parser
* Update vector index option values to uppercase in baseline test file
Co-authored-by: llali <[email protected]>
* Add comprehensive vector index error test cases to ParserErrorsTests
Co-authored-by: zijchen <[email protected]>
* Remove invalid negative test case for vector index - CREATE INDEX syntax is valid for regular indexes
Co-authored-by: zijchen <[email protected]>
* fixing the test
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: llali <[email protected]>
Co-authored-by: Leila Lali <[email protected]>
Co-authored-by: zijchen <[email protected]>
Copy file name to clipboardExpand all lines: SqlScriptDom/Parser/TSql/Ast.xml
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4607,6 +4607,13 @@
4607
4607
<MemberName="ForJsonPaths"Type="StringLiteral"Collection="true"Summary="The JSON paths specified in the FOR clause. Optional may have zero elements."/>
<MemberName="OnFileGroupOrPartitionScheme"Type="FileGroupOrPartitionScheme"Summary="The filegroup or partition scheme. Might be null."/>
4616
+
</Class>
4610
4617
<ClassName="WindowFrameClause"Summary="Represents the specification of window bounds for windowing aggregates.">
4611
4618
<MemberName="Top"Type="WindowDelimiter"Summary="Top boundary of the window."/>
4612
4619
<MemberName="Bottom"Type="WindowDelimiter"Summary="Bottom boundary of the window. Optional may be null."/>
@@ -4639,6 +4646,14 @@
4639
4646
<MemberName="Expression"Type="ScalarExpression"Summary="Can be an integer in the range 0 - 10080."/>
4640
4647
<MemberName="TimeUnit"Type="CompressionDelayTimeUnit"GenerateUpdatePositionInfoCall="false"Summary="The optional unit of measure for the compression delay (it can be MINUTE or MINUTES)."/>
4641
4648
</Class>
4649
+
<ClassName="VectorMetricIndexOption"Base="IndexOption"Summary="Represents the vector metric index option.">
4650
+
<InheritedClassName="IndexOption" />
4651
+
<MemberName="MetricType"Type="VectorMetricType"GenerateUpdatePositionInfoCall="false"Summary="The vector metric type (cosine, dot, euclidean)."/>
4652
+
</Class>
4653
+
<ClassName="VectorTypeIndexOption"Base="IndexOption"Summary="Represents the vector type index option.">
4654
+
<InheritedClassName="IndexOption" />
4655
+
<MemberName="VectorType"Type="VectorIndexType"GenerateUpdatePositionInfoCall="false"Summary="The vector index type (DiskANN)."/>
4656
+
</Class>
4642
4657
<ClassName="ExternalLibraryStatement"Abstract="true"Base="TSqlStatement"Summary="Represents common parts in create and alter external library statements.">
4643
4658
<MemberName="Name"Type="Identifier"Summary="The name of the external library."/>
4644
4659
<MemberName="Language"Type="StringLiteral"Summary="The language of this external library."/>
0 commit comments