Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport #60534 to 24.2: Fix_max_query_size_for_kql_compound_operator: #61010

Merged
merged 1 commit into from Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Parsers/Kusto/ParserKQLQuery.cpp
Expand Up @@ -416,8 +416,9 @@ bool ParserKQLQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
ParserToken s_dash(TokenType::Minus);
if (s_dash.ignore(pos, expected))
{
String tmp_op(op_pos_begin->begin, pos->end);
kql_operator = tmp_op;
if (!isValidKQLPos(pos))
return false;
kql_operator = String(op_pos_begin->begin, pos->end);
}
else
--pos;
Expand Down
4 changes: 4 additions & 0 deletions tests/queries/0_stateless/02366_kql_mvexpand.sql
Expand Up @@ -33,3 +33,7 @@ print '-- mv_expand_test_table | mv-expand with_itemindex=index c,d to typeof(bo
mv_expand_test_table | mv-expand with_itemindex=index c,d to typeof(bool);
print '-- mv_expand_test_table | mv-expand c to typeof(bool) --';
mv_expand_test_table | mv-expand c to typeof(bool);
SET max_query_size = 28;
SET dialect='kusto';
mv_expand_test_table | mv-expand c, d; -- { serverError SYNTAX_ERROR }
SET max_query_size=262144;