mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +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>
153 lines
2.1 KiB
Plaintext
153 lines
2.1 KiB
Plaintext
-- constant index value
|
|
1 c ['A',NULL,'C']
|
|
-- array_length()
|
|
1
|
|
1
|
|
-- array_sum()
|
|
1
|
|
1
|
|
-- array_index_of()
|
|
3
|
|
1
|
|
-- array_iif()
|
|
[1,5,3]
|
|
[1,5,3]
|
|
[1,5,NULL]
|
|
[NULL,NULL,NULL]
|
|
-- array_concat()
|
|
[1,2,3,4,5,6]
|
|
-- array_reverse()
|
|
[]
|
|
[1]
|
|
[4,3,2,1]
|
|
['example','an','is','this']
|
|
-- array_rotate_left()
|
|
[]
|
|
[]
|
|
[]
|
|
[3,4,5,1,2]
|
|
[1,2,3,4,5]
|
|
[3,4,5,1,2]
|
|
[4,5,1,2,3]
|
|
[1,2,3,4,5]
|
|
[4,5,1,2,3]
|
|
-- array_rotate_right()
|
|
[]
|
|
[]
|
|
[]
|
|
[4,5,1,2,3]
|
|
[1,2,3,4,5]
|
|
[4,5,1,2,3]
|
|
[3,4,5,1,2]
|
|
[1,2,3,4,5]
|
|
[3,4,5,1,2]
|
|
-- array_shift_left()
|
|
[]
|
|
[]
|
|
[]
|
|
[3,4,5,NULL,NULL]
|
|
[NULL,NULL,1,2,3]
|
|
[3,4,5,-1,-1]
|
|
['c','','']
|
|
-- array_shift_right()
|
|
[]
|
|
[]
|
|
[]
|
|
[3,4,5,NULL,NULL]
|
|
[NULL,NULL,1,2,3]
|
|
[3,4,5,-1,-1]
|
|
['c','','']
|
|
-- array_slice()
|
|
[3,4]
|
|
-- array_split()
|
|
[[1],[2,3],[4,5]]
|
|
[[1,2],[3,4,5]]
|
|
[[1],[2,3],[4,5]]
|
|
[[1,2,3,4],[],[4,5]]
|
|
-- array_sort_asc()
|
|
(['a','c','c','d',NULL])
|
|
([1,2,3,4])
|
|
['a','b','c']
|
|
(['p','q','r'],['hello','clickhouse','world'])
|
|
([NULL,'a','c','c','d'])
|
|
([NULL,'a','c','c','d'])
|
|
([NULL,NULL,NULL])
|
|
[1,2,3,NULL,NULL]
|
|
['a','e','b','c','d']
|
|
(['George','John','Paul','Ringo'])
|
|
(['blue','green','yellow',NULL,NULL])
|
|
([NULL,NULL,'blue','green','yellow'])
|
|
-- array_sort_desc()
|
|
(['d','c','c','a',NULL])
|
|
([4,3,2,1])
|
|
['c','b','a']
|
|
(['r','q','p'],['world','clickhouse','hello'])
|
|
([NULL,'d','c','c','a'])
|
|
([NULL,'d','c','c','a'])
|
|
([NULL,NULL,NULL])
|
|
[3,2,1,NULL,NULL]
|
|
['d','c','b','e','a']
|
|
(['Ringo','Paul','John','George'])
|
|
(['yellow','green','blue',NULL,NULL])
|
|
([NULL,NULL,'yellow','green','blue'])
|
|
-- jaccard_index()
|
|
0.75
|
|
0
|
|
0
|
|
nan
|
|
0
|
|
0.75
|
|
0.25
|
|
-- pack_array()
|
|
1 2 4 [1,2,4]
|
|
['ab','0.0.0.42','4.2']
|
|
-- repeat()
|
|
[]
|
|
[1,1,1]
|
|
['asd','asd','asd']
|
|
[86400,86400,86400]
|
|
[true,true,true]
|
|
[NULL]
|
|
[NULL]
|
|
-- set_difference()
|
|
[]
|
|
[]
|
|
[]
|
|
[]
|
|
[4,5,6]
|
|
[4]
|
|
[1,3]
|
|
[1,2,3]
|
|
['d','s']
|
|
['Chewbacca','Han Solo']
|
|
-- set_has_element()
|
|
0
|
|
1
|
|
0
|
|
1
|
|
0
|
|
-- set_intersect()
|
|
[]
|
|
[1,2,3]
|
|
[1,2,3]
|
|
[]
|
|
[5]
|
|
[]
|
|
['a']
|
|
['Darth Vader']
|
|
-- set_union()
|
|
[]
|
|
[1,2,3]
|
|
[1,2,3,4,5,6]
|
|
[1,2,3,4]
|
|
[1,2,3,4,5]
|
|
[1,2,3]
|
|
['a','d','f','s']
|
|
['Chewbacca','Darth Sidious','Darth Vader','Han Solo']
|
|
-- zip()
|
|
[]
|
|
[[1,2],[3,4],[5,6]]
|
|
[['Darth','Vader','has a suit'],['Master','Yoda','doesn\'t have a suit']]
|
|
[[1,10],[2,20],[3,NULL]]
|
|
[[NULL,1],[NULL,2],[NULL,3]]
|