Skip to content

Commit 0422e73

Browse files
llaliDhruv Relwani
andauthored
Sync Repos: sync for release 170.0.44.0 (#132)
* [Security] Update .NET SDK to latest patch version * [Security] Update .NET SDK to latest patch version * Merged PR 1627236: Adding New Grammar File: TSqlFabricDW.g In this PR we add a new Grammar File and Parser specifically targeting Fabric DW platform. Currently we use TSql160 grammar and parser and hence we have simply cloned them in this PR before adding any changes in subsequent iterations. This would help in the development of a few features in Fabric DW DMS team. **Our PM Specs for these features**: [DacFx & ScriptDom support CI/CD in Fabric Web and Client Tools](https://microsoft-my.sharepoint.com/:w:/p/salilkanade/ES9gX3CH06xKmMny3fgr0r4BAjKCObgS3lCJ9qf97q8y6A?e=h76P3r&ovuser=72f988bf-86f1-41af-91ab-2d7cd011db47%2Cdhrelwan%40microsoft.com) [DacFx integration for Fabric DW CI/CD](https://microsoft-my.sharepoint.com/:w:/p/salilkanade/ES9gX3CH06xKmMny3fgr0r4BAjKCObgS3lCJ9qf97q8y6A?e=h76P3r&ovuser=72f988bf-86f1-41af-91ab-2d7cd011db47%2Cdhrelwan%40microsoft.com) **Fabric DW Contacts**: Dev: @<Dhruv Relwani> EM: @<Don Reamey> PM: @<Pradeep Srikakolapu> Related work items: #4093147 * Merged PR 1634415: Adding new Event types with 170 Adding new Event types with 170 ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request adds new event types to the `EventNotificationEventType` enumeration. - `EventNotificationEventType.cs`: Added `AddInformationProtection` and `DropInformationProtection` event types. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot --> * Merged PR 1661745: Fabric DW Parser - Scalar Function tests Adding tests for scalar function support for the newly added TSqlFabricDW parser. Related work items: #4161090 * [Security] Update .NET SDK to latest patch version * Merged PR 1684141: Adding release notes for 170.0.44.0 # Pull Request Template for ScriptDom ## Description Adding release notes for 170.0.44.0 Before submitting your pull request, please ensure you have completed the following: ## Code Change - [ ] 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 - [ ] 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 ## Testing - [ ] 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 - [ ] Update relevant documentation in the [wiki](https://dev.azure.com/msdata/SQLToolsAndLibraries/_wiki/wikis/SQLToolsAndLibraries.wiki) and the README.md file ## Additional Information Please provide any additional information that might be helpful for the reviewers Adding release notes for 170.0.44.0 --------- Co-authored-by: MerlinBot <MerlinBot> Co-authored-by: Dhruv Relwani <[email protected]>
1 parent f481c6f commit 0422e73

24 files changed

+35433
-42
lines changed

SqlScriptDom/GenerateFiles.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSql140.g" />
1212
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSql150.g" />
1313
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSql160.g" />
14+
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSqlFabricDW.g" />
1415
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSql170.g" />
1516
</ItemGroup>
1617
<Target Name="CreateCsGenIntermediateOutputPath" AfterTargets="BuildGenerateSources" BeforeTargets="CoreCompile">

SqlScriptDom/Parser/TSql/EventNotificationEventType.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,16 @@ public enum EventNotificationEventType
10961096
/// </summary>
10971097
CreateVectorIndex = 344,
10981098

1099+
/// <summary>
1100+
/// ADD_INFORMATION_PROTECTION
1101+
/// </summary>
1102+
AddInformationProtection = 345,
1103+
1104+
/// <summary>
1105+
/// DROP_INFORMATION_PROTECTION
1106+
/// </summary>
1107+
DropInformationProtection = 346,
1108+
10991109
/// <summary>
11001110
/// AUDIT_LOGIN.
11011111
/// </summary>

SqlScriptDom/Parser/TSql/OptionsHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ internal SqlVersionFlags MapSqlVersionToSqlVersionFlags(SqlVersion sqlVersion)
128128
return SqlVersionFlags.TSql160;
129129
case SqlVersion.Sql170:
130130
return SqlVersionFlags.TSql170;
131+
case SqlVersion.SqlFabricDW:
132+
return SqlVersionFlags.TSqlFabricDW;
131133
default:
132134
throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SqlScriptGeneratorResource.UnknownEnumValue, sqlVersion, "SqlVersion"), "sqlVersion");
133135
}

SqlScriptDom/Parser/TSql/SqlVersionFlags.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,24 @@ internal enum SqlVersionFlags
2424
TSql150 = 0x80,
2525
TSql160 = 0x100,
2626
TSql170 = 0x200,
27+
TSqlFabricDW = 0x400,
2728

28-
TSqlAll = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
29-
TSql90AndAbove = TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
30-
TSql100AndAbove = TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
31-
TSql110AndAbove = TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
32-
TSql120AndAbove = TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
33-
TSql130AndAbove = TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
34-
TSql140AndAbove = TSql140 | TSql150 | TSql160 | TSql170,
35-
TSql150AndAbove = TSql150 | TSql160 | TSql170,
36-
TSql160AndAbove = TSql160 | TSql170,
29+
TSqlAll = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSqlFabricDW | TSql170,
30+
TSql90AndAbove = TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSqlFabricDW | TSql170,
31+
TSql100AndAbove = TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSqlFabricDW | TSql170,
32+
TSql110AndAbove = TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSqlFabricDW | TSql170,
33+
TSql120AndAbove = TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSqlFabricDW | TSql170,
34+
TSql130AndAbove = TSql130 | TSql140 | TSql150 | TSql160 | TSqlFabricDW | TSql170,
35+
TSql140AndAbove = TSql140 | TSql150 | TSql160 | TSqlFabricDW | TSql170,
36+
TSql150AndAbove = TSql150 | TSql160 | TSqlFabricDW | TSql170,
37+
TSql160AndAbove = TSql160 | TSqlFabricDW | TSql170,
38+
TSqlFabricDWAndAbove = TSql160 | TSqlFabricDW | TSql170,
3739
TSqlUnder110 = TSql80 | TSql90 | TSql100,
3840
TSqlUnder120 = TSql80 | TSql90 | TSql100 | TSql110,
3941
TSqlUnder130 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120,
4042
TSqlUnder140 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130,
4143
TSqlUnder150 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140,
4244
TSqlUnder160 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150,
43-
TSqlUnder170 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160,
45+
TSqlUnder170 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSqlFabricDW,
4446
}
4547
}

0 commit comments

Comments
 (0)