Skip to content

Commit 5d61d16

Browse files
author
Kusto Build System
committed
Auto-sync from Azure-Kusto-Service
1 parent b5ca8ba commit 5d61d16

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/Kusto.Language/Functions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3571,6 +3571,10 @@ bool InClause(SyntaxNode clause) =>
35713571
.WithResultNameKind(ResultNameKind.PrefixOnly)
35723572
.WithResultNamePrefix("$IngestionTime");
35733573

3574+
public static readonly FunctionSymbol RowId =
3575+
new FunctionSymbol("row_id", ScalarTypes.String)
3576+
.WithResultNameKind(ResultNameKind.None);
3577+
35743578
public static readonly FunctionSymbol CursorAfter =
35753579
new FunctionSymbol("cursor_after", ScalarTypes.Bool,
35763580
new Parameter("cursor", ScalarTypes.String));
@@ -4190,6 +4194,7 @@ bool InClause(SyntaxNode clause) =>
41904194
ExtentTags,
41914195
CurrentNodeId,
41924196
IngestionTime,
4197+
RowId,
41934198
CursorAfter,
41944199
CursorBeforeOrAt,
41954200
CursorCurrent,

src/Kusto.Language/PlugIns.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,16 @@ private static TableSymbol GetOutputSchema(CustomReturnTypeContext context)
10801080
new Parameter("options", ParameterTypeKind.DynamicBag, minOccurring: 0)
10811081
);
10821082

1083+
public static readonly FunctionSymbol DaxRequest =
1084+
new FunctionSymbol("dax_request",
1085+
context => new TableSymbol().WithIsOpen(true), // the schema comes from the semantic model at runtime
1086+
Tabularity.Tabular,
1087+
new Parameter("connection_string", ScalarTypes.String),
1088+
new Parameter("dax_query", ScalarTypes.String),
1089+
new Parameter("dax_parameters", ParameterTypeKind.DynamicBag, minOccurring: 0),
1090+
new Parameter("options", ParameterTypeKind.DynamicBag, minOccurring: 0))
1091+
.Hide(); // Open once service rollout completes
1092+
10831093
public static readonly FunctionSymbol AzureDigitalTwinsQueryRequest =
10841094
new FunctionSymbol("azure_digital_twins_query_request",
10851095
context => new TableSymbol().WithIsOpen(true), // depends on the SELECT command provided
@@ -1133,6 +1143,7 @@ private static TableSymbol GetOutputSchema(CustomReturnTypeContext context)
11331143
SqlRequest,
11341144
MySqlRequest,
11351145
PostgreSqlRequest,
1146+
DaxRequest,
11361147
AIEmbedText_Deprecated,
11371148
AIChatCompletion,
11381149
AIChatCompletionPrompt,

0 commit comments

Comments
 (0)