mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
795c1a98dc
* 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>
9 lines
382 B
SQL
9 lines
382 B
SQL
set dialect='kusto';
|
|
print ' -- binary functions';
|
|
print binary_and(4,7), binary_or(4,7);
|
|
print binary_shift_left(1, 1) == binary_shift_left(1, 65);
|
|
print binary_shift_right(2, 1) == binary_shift_right(2, 65);
|
|
print binary_shift_right(binary_shift_left(1, 65), 65) == 1;
|
|
print binary_xor(2, 5), bitset_count_ones(42);
|
|
print bitset_count_ones(binary_shift_left(binary_and(4,7), 1));
|