Skip to content

Commit

Permalink
Auto-sync from Azure-Kusto-Service
Browse files Browse the repository at this point in the history
  • Loading branch information
Kusto Build System committed Jul 28, 2024
1 parent bdddb77 commit 2f98fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kusto.Language/Parser/QueryGrammar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ Parser<LexicalToken, SyntaxToken> InToken(SyntaxKind inKind)
QueryParameterList(QueryOperatorParameters.ExternalDataWithClauseProperties),
Required(RowSchema, CreateMissingRowSchema),
RequiredToken(SyntaxKind.OpenBracketToken),
CommaList(Literal, fnMissingElement: CreateMissingExpression, allowTrailingComma: true, oneOrMore: true),
CommaList(UnnamedExpression, fnMissingElement: CreateMissingExpression, allowTrailingComma: true, oneOrMore: true),
RequiredToken(SyntaxKind.CloseBracketToken),
Optional(ExternalDataWithClause),
(keyword, parameters, schema, openBracket, name, closeBracket, withClause) =>
Expand Down
5 changes: 4 additions & 1 deletion src/Kusto.Language/Parser/QueryParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,9 @@ private Expression ParseLiteral()
return null;
}

private static readonly Func<QueryParser, Expression> FnParseExpression =
qp => qp.ParseExpression();

private static readonly Func<QueryParser, Expression> FnParseLiteral =
qp => qp.ParseLiteral();

Expand Down Expand Up @@ -1860,7 +1863,7 @@ private ExternalDataExpression ParseExternalDataExpression()
var parameters = ParseQueryOperatorParameterList(s_dataTableParameters);
var schema = ParseRowSchema() ?? CreateMissingRowSchema();
var open = ParseRequiredToken(SyntaxKind.OpenBracketToken);
var values = ParseCommaList(FnParseLiteral, CreateMissingValue, FnScanCommonListEnd, allowTrailingComma: true);
var values = ParseCommaList(FnParseExpression, CreateMissingValue, FnScanCommonListEnd, allowTrailingComma: true);
var close = ParseRequiredToken(SyntaxKind.CloseBracketToken);
var clause = ParseExternalDataWithClause();
return new ExternalDataExpression(keyword, parameters, schema, open, values, close, clause);
Expand Down

0 comments on commit 2f98fac

Please sign in to comment.