Commit Graph

10 Commits

Author SHA1 Message Date
Yong Wang
795c1a98dc
Fix segmentation fault in KQL parser when the input query exceeds the max_query_size (#59626)
* Fix_kql_issue_found_by_wingfuzz

This commit fix the issues:
 https://github.com/ClickHouse/ClickHouse/issues/59036
 https://github.com/ClickHouse/ClickHouse/issues/59037

both issues are same reason, the input query exceed the max_query_size,
so the condition isEnd() of token is not meet and cause the assertion failure

* fix_kql_issue_found_by_wingfuzz: use isValid instead of TokenType::EndOfStream

* fix_kql_issue_found_by_wingfuzz: make functional test result consist

* fix_kql_issue_found_by_wingfuzz: update test case for makeseries

* fix_kql_issue_found_by_wingfuzz: disable makeseries

* fix_kql_issue_found_by_wingfuzz:
 use isvalid() function to replace isEnd() function of TokenIterator to check the end of stream

* fix_kql_issue_found_by_wingfuzz: add test case for max_query_size

* fix_kql_issue_found_by_wingfuzz: fix AST structure

* fix_kql_issue_found_by_wingfuzz: make sure the max query size test is in the dialect of kusto

* fix_kql_issue_found_by_wingfuzz : restore max query size after test

* fix_kql_issue_found_by_wingfuzz : fix typo

---------

Co-authored-by: János Benjamin Antal <benjamin.antal@clickhouse.com>
2024-02-26 13:31:47 +01:00
Alexey Milovidov
c7663c6d92 Remove tests 2024-01-28 18:31:10 +01:00
Larry Luo
b688fe5443 stablized datetime related tests 2023-08-26 07:40:38 -07:00
Larry Luo
981a287b7a Address functional test failures. 2023-08-26 07:40:38 -07:00
Yong Wang
b6670fefaf Kusto-phase2 : fix direct array index, fix functional test 2023-08-26 07:40:36 -07:00
ltrk2
33e04c4e7a Implement KQL functional tests 2023-08-26 07:40:35 -07:00
HeenaBansal2009
67774ece8d Functional testcas added 2023-08-26 07:40:35 -07:00
Yong Wang
42c6998cff Kusto-phase2: fix core dump , kql !in orerator in sql 2023-08-26 07:40:34 -07:00
Larry Luo
571e9aa155 added more date time tests 2023-08-26 07:40:32 -07:00
Larry Luo
79d249f6cd added tests for dynamic and datetime 2023-08-26 07:40:32 -07:00