Skip to content

Commit 0189cb0

Browse files
author
Kusto Build System
committed
Auto-sync from Azure-Kusto-Service
1 parent 652c37d commit 0189cb0

4 files changed

Lines changed: 53 additions & 16 deletions

File tree

src/Kusto.Language.Generators/EngineCommandInfos.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,6 +2956,16 @@ [partition by
29562956
new CommandInfo(nameof(GraphSnapshotShowFailures),
29572957
"show graph_snapshots <qualified_wildcarded_name> failures",
29582958
GraphSnapshotsShowFailuresResult);
2959+
2960+
public static readonly CommandInfo GraphShardMake =
2961+
new CommandInfo(nameof(GraphShardMake),
2962+
"make [async] #graph_shards <qualified_wildcarded_name>",
2963+
GraphSnapshotShowDetailsResult);
2964+
2965+
public static readonly CommandInfo GraphShardDrop =
2966+
new CommandInfo(nameof(GraphShardDrop),
2967+
"drop #graph_shards <qualified_wildcarded_name>",
2968+
GraphSnapshotShowDetailsResult);
29592969
#endregion
29602970

29612971
#endregion

src/Kusto.Language/Parser/CodeGen/EngineCommandGrammar.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6292,6 +6292,21 @@ internal override CommandParserInfo[] CreateCommandParsers(PredefinedRuleParsers
62926292
Token("failures"),
62936293
shape3));
62946294

6295+
var GraphShardMake = Command("GraphShardMake",
6296+
Custom(
6297+
Token("make", CompletionKind.CommandPrefix),
6298+
Optional(Token("async")),
6299+
Token("graph_shards").Hide(),
6300+
rules.QualifiedWildcardedNameDeclaration,
6301+
new [] {CD(), CD(isOptional: true), CD(), CD(CompletionHint.None)}));
6302+
6303+
var GraphShardDrop = Command("GraphShardDrop",
6304+
Custom(
6305+
Token("drop", CompletionKind.CommandPrefix),
6306+
Token("graph_shards").Hide(),
6307+
rules.QualifiedWildcardedNameDeclaration,
6308+
shape43));
6309+
62956310
var ShowCertificates = Command("ShowCertificates",
62966311
Custom(
62976312
Token("show", CompletionKind.CommandPrefix),
@@ -8357,6 +8372,8 @@ internal override CommandParserInfo[] CreateCommandParsers(PredefinedRuleParsers
83578372
new CommandParserInfo("GraphSnapshotShowStatistics", GraphSnapshotShowStatistics),
83588373
new CommandParserInfo("GraphSnapshotsShowStatistics", GraphSnapshotsShowStatistics),
83598374
new CommandParserInfo("GraphSnapshotShowFailures", GraphSnapshotShowFailures),
8375+
new CommandParserInfo("GraphShardMake", GraphShardMake),
8376+
new CommandParserInfo("GraphShardDrop", GraphShardDrop),
83608377
new CommandParserInfo("ShowCertificates", ShowCertificates),
83618378
new CommandParserInfo("ShowCloudSettings", ShowCloudSettings),
83628379
new CommandParserInfo("ShowCommConcurrency", ShowCommConcurrency),

src/Kusto.Language/Parser/CodeGen/EngineCommands.cs

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ public static class EngineCommands
5959
private static readonly string _schema40 = "(StoredQueryResultId:guid, Name:string, DatabaseName:string, PrincipalIdentity:string, SizeInBytes:long, RowCount:long, CreatedOn:datetime, ExpiresOn:datetime)";
6060
private static readonly string _schema41 = "(Name:string, SnapshotTime:datetime, ModelName:string, ModelId:guid, ModelCreationTime:datetime)";
6161
private static readonly string _schema42 = "(DatabaseName:string, Name:string, SnapshotTime:datetime, ModelName:string, ModelId:guid, TotalCpu:timespan, MemoryPeak:long, Duration:timespan, Details:string, NodesCount:long, EdgesCount:long, NodesSize:long, EdgesSize:long)";
62-
private static readonly string _schema43 = "(Name: string, Entities: string)";
63-
private static readonly string _schema44 = "(ExtentContainerId:guid, Url:string, State:string, CreatedOn:datetime, MaxDateTime:datetime, IsRecyclable:bool, StoresDatabaseMetadataPointer:bool, HardDeletePeriod:timespan, ActiveMetadataContainer:bool, MetadataContainer:bool)";
64-
private static readonly string _schema45 = "(DatabaseName:string, EntityType:string, EntityName:string, DocString:string, Folder:string, CslInputSchema:string, Content:string, CslOutputSchema:string, Properties:dynamic)";
62+
private static readonly string _schema43 = "(Name:string, SnapshotTime:datetime, ModelName:string, ModelId:guid, ModelCreationTime:datetime, NodesCount: long, EdgesCount: long, RetentionPolicy:string, CachingPolicy:string)";
63+
private static readonly string _schema44 = "(Name: string, Entities: string)";
64+
private static readonly string _schema45 = "(ExtentContainerId:guid, Url:string, State:string, CreatedOn:datetime, MaxDateTime:datetime, IsRecyclable:bool, StoresDatabaseMetadataPointer:bool, HardDeletePeriod:timespan, ActiveMetadataContainer:bool, MetadataContainer:bool)";
65+
private static readonly string _schema46 = "(DatabaseName:string, EntityType:string, EntityName:string, DocString:string, Folder:string, CslInputSchema:string, Content:string, CslOutputSchema:string, Properties:dynamic)";
6566

6667
public static readonly CommandSymbol ShowDatabase =
6768
new CommandSymbol(
@@ -1543,7 +1544,7 @@ public static class EngineCommands
15431544
new CommandSymbol("DropGraphModelAdmins", _schema19);
15441545

15451546
public static readonly CommandSymbol GraphSnapshotMake =
1546-
new CommandSymbol("GraphSnapshotMake", "(Name:string, SnapshotTime:datetime, ModelName:string, ModelId:guid, ModelCreationTime:datetime, NodesCount: long, EdgesCount: long, RetentionPolicy:string, CachingPolicy:string)");
1547+
new CommandSymbol("GraphSnapshotMake", _schema43);
15471548

15481549
public static readonly CommandSymbol GraphSnapshotShow =
15491550
new CommandSymbol("GraphSnapshotShow", _schema19);
@@ -1566,6 +1567,12 @@ public static class EngineCommands
15661567
public static readonly CommandSymbol GraphSnapshotShowFailures =
15671568
new CommandSymbol("GraphSnapshotShowFailures", "(OperationId:guid, DatabaseName:string, Name:string, SnapshotTime:datetime, ModelName:string, ModelId:guid, TotalCpu:timespan, MemoryPeak:long, Duration:timespan, Details:string, FailureReason:string, FailureKind:string)");
15681569

1570+
public static readonly CommandSymbol GraphShardMake =
1571+
new CommandSymbol("GraphShardMake", _schema43);
1572+
1573+
public static readonly CommandSymbol GraphShardDrop =
1574+
new CommandSymbol("GraphShardDrop", _schema43);
1575+
15691576
public static readonly CommandSymbol ShowCertificates =
15701577
new CommandSymbol("ShowCertificates", _schema19);
15711578

@@ -1654,28 +1661,28 @@ public static class EngineCommands
16541661
new CommandSymbol("DropFabricServiceAssignmentsCommand", _schema19);
16551662

16561663
public static readonly CommandSymbol CreateEntityGroupCommand =
1657-
new CommandSymbol("CreateEntityGroupCommand", _schema43);
1664+
new CommandSymbol("CreateEntityGroupCommand", _schema44);
16581665

16591666
public static readonly CommandSymbol CreateOrAlterEntityGroupCommand =
1660-
new CommandSymbol("CreateOrAlterEntityGroupCommand", _schema43);
1667+
new CommandSymbol("CreateOrAlterEntityGroupCommand", _schema44);
16611668

16621669
public static readonly CommandSymbol AlterEntityGroup =
1663-
new CommandSymbol("AlterEntityGroup", _schema43);
1670+
new CommandSymbol("AlterEntityGroup", _schema44);
16641671

16651672
public static readonly CommandSymbol AlterMergeEntityGroup =
1666-
new CommandSymbol("AlterMergeEntityGroup", _schema43);
1673+
new CommandSymbol("AlterMergeEntityGroup", _schema44);
16671674

16681675
public static readonly CommandSymbol DropEntityGroup =
1669-
new CommandSymbol("DropEntityGroup", _schema43);
1676+
new CommandSymbol("DropEntityGroup", _schema44);
16701677

16711678
public static readonly CommandSymbol ShowEntityGroup =
1672-
new CommandSymbol("ShowEntityGroup", _schema43);
1679+
new CommandSymbol("ShowEntityGroup", _schema44);
16731680

16741681
public static readonly CommandSymbol ShowEntityGroups =
1675-
new CommandSymbol("ShowEntityGroups", _schema43);
1682+
new CommandSymbol("ShowEntityGroups", _schema44);
16761683

16771684
public static readonly CommandSymbol AlterExtentContainersAdd =
1678-
new CommandSymbol("AlterExtentContainersAdd", _schema44);
1685+
new CommandSymbol("AlterExtentContainersAdd", _schema45);
16791686

16801687
public static readonly CommandSymbol AlterExtentContainersDrop =
16811688
new CommandSymbol("AlterExtentContainersDrop", _schema19);
@@ -1684,10 +1691,10 @@ public static class EngineCommands
16841691
new CommandSymbol("AlterExtentContainersRecycle", _schema19);
16851692

16861693
public static readonly CommandSymbol AlterExtentContainersSet =
1687-
new CommandSymbol("AlterExtentContainersSet", _schema44);
1694+
new CommandSymbol("AlterExtentContainersSet", _schema45);
16881695

16891696
public static readonly CommandSymbol ShowExtentContainers =
1690-
new CommandSymbol("ShowExtentContainers", _schema44);
1697+
new CommandSymbol("ShowExtentContainers", _schema45);
16911698

16921699
public static readonly CommandSymbol DropEmptyExtentContainers =
16931700
new CommandSymbol("DropEmptyExtentContainers", _schema19);
@@ -1984,10 +1991,10 @@ public static class EngineCommands
19841991
new CommandSymbol("ClearExternalArtifactsCache", _schema19);
19851992

19861993
public static readonly CommandSymbol ShowDatabasesEntities =
1987-
new CommandSymbol("ShowDatabasesEntities", _schema45);
1994+
new CommandSymbol("ShowDatabasesEntities", _schema46);
19881995

19891996
public static readonly CommandSymbol ShowDatabaseEntity =
1990-
new CommandSymbol("ShowDatabaseEntity", _schema45);
1997+
new CommandSymbol("ShowDatabaseEntity", _schema46);
19911998

19921999
public static readonly CommandSymbol ReplaceDatabaseKeyVaultSecrets =
19932000
new CommandSymbol("ReplaceDatabaseKeyVaultSecrets", _schema19);
@@ -2469,6 +2476,8 @@ public static class EngineCommands
24692476
GraphSnapshotShowStatistics,
24702477
GraphSnapshotsShowStatistics,
24712478
GraphSnapshotShowFailures,
2479+
GraphShardMake,
2480+
GraphShardDrop,
24722481
ShowCertificates,
24732482
ShowCloudSettings,
24742483
ShowCommConcurrency,

src/Kusto.Language/Parser/KustoFacts_Keywords.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ public static partial class KustoFacts
179179
"writeaheadlog",
180180
"graph_snapshots_drop_by_retention",
181181
"graph_snapshots_optimize",
182+
"graph_shards",
182183
};
183184
}
184185
}

0 commit comments

Comments
 (0)