Skip to content

Commit 516d6b2

Browse files
author
Kusto Build System
committed
Auto-sync from Azure-Kusto-Service
1 parent 24aabe7 commit 516d6b2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Kusto.Language/Binder/Binder_NodeBinder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4244,7 +4244,7 @@ public override SemanticInfo VisitGraphToTableOperator(GraphToTableOperator node
42444244
}
42454245
else
42464246
{
4247-
diagnostics.Add(DiagnosticFacts.GetIncorrectNumberOfOutputGraphEntities().WithLocation(node.OutputClause));
4247+
diagnostics.Add(DiagnosticFacts.GetIncorrectNumberOfOutputGraphToTableEntities().WithLocation(node.OutputClause));
42484248
}
42494249

42504250
return new SemanticInfo(symbol, diagnostics);

src/Kusto.Language/Diagnostics/DiagnosticFacts.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,9 @@ public static Diagnostic GetMissingGraphEntityType()
894894
return new Diagnostic("KS229", "Missing graph entity type, Expected values [nodes, edges].");
895895
}
896896

897-
public static Diagnostic GetIncorrectNumberOfOutputGraphEntities()
897+
public static Diagnostic GetIncorrectNumberOfOutputGraphToTableEntities()
898898
{
899-
return new Diagnostic("KS230", "The operator support exactly one or two entities.");
899+
return new Diagnostic("KS230", "The graph-to-table operator requires 1-2 arguments (nodes, edges).");
900900
}
901901

902902
public static Diagnostic GetTableOrGraphExpected()

src/Kusto.Language/Parser/QueryParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6007,7 +6007,7 @@ private GraphToTableOperator ParseGraphToTableOperator()
60076007
new NameDeclaration(SyntaxToken.Missing(SyntaxKind.IdentifierToken))
60086008
),
60096009
null,
6010-
new Diagnostic[] { DiagnosticFacts.GetIncorrectNumberOfOutputGraphEntities() }
6010+
new Diagnostic[] { DiagnosticFacts.GetIncorrectNumberOfOutputGraphToTableEntities() }
60116011
);
60126012

60136013
private static Func<QueryParser, GraphToTableOutputClause> FnParseGraphToTableOutputClause =

0 commit comments

Comments
 (0)