Files
doris/regression-test/data/query_p0/aggregate/array_agg.out
amory 1db0aef9b7 [feature](array_agg) support array_agg with param is array/map/struct… (#41651)
… (#40697)

this pr we support array_agg function support param with array map
struct type

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
2024-10-10 17:54:54 +08:00

254 lines
7.8 KiB
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !sql1 --
3 ["LC", "LB", "LA"]
3 ["LC", "LB", "LA"]
3 ["LC", "LB", "alex"]
3 ["LC", null, "LA"]
4 [null, "LC", "LB", "LA"]
5 [null, "LC", "LC", "LC", "LC"]
5 [null, "LC", "LC", "LC", "LC"]
-- !sql2 --
0 ["alex", null, "LC", "LC", "LC", "LC"]
1 ["LA"]
1 ["LA"]
1 ["LA"]
1 ["LA"]
1 ["LB"]
1 ["LB"]
1 ["LB"]
1 ["LB"]
1 ["LC"]
1 ["LC"]
1 ["LC"]
1 ["LC"]
2 [null, "LC"]
3 [null, "LC", "LC"]
3 [null, "LC", "LC"]
-- !sql3 --
["LC", "LB", "alex", "LC", "LB", "LA", "LC", null, "LA", "LC", "LB", "LA", null, "LC", "LB", "LA", null, "LC", "LC", "LC", "LC", null, "LC", "LC", "LC", "LC"]
-- !sql4 --
["V1_3", "V1_2", null, "V2_3", "V2_2", "V2_1", "V3_3", null, "V3_1", "V4_3", "V4_2", "V4_1", "V5_3", "V5_3", "V5_2", "V5_1", "V6_3", null, "V6_3", null, "V6_3", "V7_3", null, "V7_3", null, "V7_3"]
-- !sql5 --
1 [2, 1, null]
2 [5, 5, 4]
3 [null, 6, 6]
4 [6, 6, 5]
5 [null, 5, 6]
6 [null, null, null, null, null]
7 [null, null, null, null, null]
-- !sql6 --
[""]
-- !sql6_1 --
\N [""]
-- !sql7 --
[""]
[""]
["LC", "LB", "LA"]
["LC", "LB", "LA"]
["LC", "LB", "LA"]
["LC", "LB", "alex"]
["LC", null, "LA"]
-- !sql8 --
[null]
-- !sql9 --
1 [1.11, null, null]
2 [1.21, null, 1.23]
3 [1.24, 1.23, 1.21]
4 [1.22, null, 1.22]
5 [null, null, null]
7 [null]
8 [null]
-- !sql11 --
3 3
3 3
3 3
3 3
4 4
5 5
5 5
-- !sql21 --
0 6
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
2 2
3 3
3 3
-- !sql_array_agg_array --
1 [["plum", "banana", "apple"], ["grape", "banana", null, "plum", "cherry"], ["apple", "banana", "kiwi", null], ["apple", "banana", "cherry", "kiwi", null], ["cherry", null], null]
10 [null, ["apple", "banana", null, "cherry", "grape"], ["cherry", "berry", null], ["peach"]]
11 [["grape", "apple", "kiwi"], null, null, null]
12 [["melon", "papaya", "kiwi"], ["plum", null, "kiwi", "banana"], ["plum", null, "mango"], ["plum", null]]
13 [["apple", null], null, ["peach", "cherry", "papaya", "kiwi", null], ["plum", null]]
14 [["orange", "mango", "plum"], ["apple", "melon"], ["orange", "grape", null], ["orange", "banana", null]]
15 [null, ["banana", "peach", "plum", null], null, ["strawberry", null]]
16 [["peach", "kiwi", null, "berry"], null, ["plum", "grape", null], ["kiwi", null]]
17 [["banana", "plum", null], ["papaya"], null, ["apple", "kiwi", null, "papaya"]]
18 [["apple", null], null, ["apple", "mango", null], null]
19 [["kiwi", "mango", null], ["pear", "grape"], ["cherry", null, "plum"], ["banana", "mango", "cherry"]]
2 [null, ["apple", null, "banana"], ["orange", "grape", null], null]
20 [["grape", null], ["kiwi", null], ["kiwi", "plum", "orange", null], ["papaya", "orange", "kiwi", null]]
21 [["kiwi", null]]
22 [["orange", "peach", null, "kiwi"]]
23 [["berry", "grape", null]]
24 [null]
25 [["mango", "plum", "apple", null]]
26 [["banana", null]]
27 [["orange", "kiwi", "plum", null]]
28 [null]
29 [["apple", null, "grape", "peach"]]
3 [["mango", null], ["orange"], ["apple", "kiwi", "papaya"], ["plum", "peach", null]]
30 [["kiwi", "banana", null]]
31 [["cherry", "berry", null, "plum"]]
32 [null]
33 [["apple", null, "kiwi", "orange"]]
34 [["grape", "plum", null]]
35 [["banana", null]]
36 [["kiwi", "orange", "plum", null]]
37 [null]
38 [["apple", null]]
39 [["plum", "grape", null]]
4 [["mango", null, "orange", "plum", "berry", "kiwi"], ["orange", "grape", "mango", "berry"], ["plum", "kiwi", null, "peach", "berry"], null]
40 [["banana", "kiwi", "peach", null]]
41 [["grape", null, "plum"]]
42 [["orange", "kiwi", "peach", null]]
43 [null]
44 [["apple", "banana", null]]
45 [["grape", null]]
46 [["plum", "kiwi", null, "orange"]]
47 [null]
48 [["mango", null]]
49 [["kiwi", "plum", "banana", null]]
5 [["peach", "melon", null], ["apple", null, "kiwi"], ["grape", "kiwi", null], null]
50 [null]
6 [null, null, ["cherry", "apple", null, "plum"], null]
7 [["papaya", "cherry", "apple", null], ["melon"], ["melon", null, "papaya", "grape", "kiwi", "berry", null], ["orange", "grape", "kiwi"]]
8 [["plum", "peach", null, "orange"], ["banana", null], ["berry", "cherry"], ["banana", "mango", null]]
9 [["orange", "kiwi", "berry", null, "plum"], ["apple", "kiwi", "plum", null, "mango"], ["kiwi", null], null]
-- !sql_array_agg_map --
1 [{"key5":null}, {"key2":15, "key3":8}, {"key1":10, "key2":5}, {"key1":10, "key2":20}, {"key2":null}, null]
10 [{"key3":5, "key4":null}, {"key1":null, "key6":9}, {"key2":10, "key7":null}, {"key1":10}]
11 [{"key1":9}, {"key4":5, "key5":null}, {"key1":3, "key5":null}, {"key4":null}]
12 [null, {"key4":25}, {"key2":20, "key3":null}, {"key1":null, "key2":5}]
13 [{"key2":null, "key3":7}, null, null, {"key3":null, "key5":10}]
14 [{"key6":5}, {"key5":15, "key6":25}, {"key1":3, "key6":8}, {"key4":3, "key5":null}]
15 [{"key1":18, "key6":22}, {"key2":4}, {"key3":null}, null]
16 [{"key2":20}, {"key2":2}, {"key2":8, "key3":null}, {"key7":7, "key3":null}]
17 [{"key4":8}, {"key6":9, "key7":null}, {"key1":10, "key4":14}, {"key7":null}]
18 [{"key1":11}, {"key1":10, "key2":null}, {"key2":2}, {"key2":null, "key5":10}]
19 [{"key7":9}, {"key1":1, "key2":2, "key3":3}, {"key1":null, "key7":6}, {"key3":7, "key4":null}]
2 [{"key1":null, "key5":25}, {"key1":10, "key2":null, "key3":20}, {"key2":null, "key3":7}, {"key3":null}]
20 [{"key1":null, "key3":6}, {"key1":1, "key9":6}, {"key1":14}, {"key5":3, "key7":null}]
21 [{"key1":10, "key6":2}]
22 [{"key3":null}]
23 [{"key1":8}]
24 [{"key2":15, "key4":null}]
25 [{"key7":18}]
26 [{"key3":12}]
27 [{"key5":10}]
28 [{"key1":14}]
29 [{"key2":4, "key4":null}]
3 [{"key1":12}, {"key1":5}, {"key3":null}, {"key1":5, "key4":null}]
30 [{"key6":6}]
31 [{"key3":null}]
32 [{"key2":9, "key7":null}]
33 [{"key1":7}]
34 [{"key4":20}]
35 [{"key1":12, "key5":null}]
36 [{"key3":11}]
37 [{"key1":null}]
38 [{"key2":3, "key6":9}]
39 [{"key5":8}]
4 [{"key2":30}, null, {"key4":15}, {"key3":7, "key4":null}]
40 [{"key1":15}]
41 [{"key3":7}]
42 [{"key4":5}]
43 [{"key1":2, "key7":null}]
44 [{"key2":14}]
45 [{"key4":12}]
46 [{"key6":10}]
47 [{"key2":null}]
48 [{"key5":9}]
49 [{"key1":13}]
5 [{"key1":10}, {"key1":7, "key2":8}, null, {"key2":8, "key5":null}]
50 [{"key7":8}]
6 [{"key4":7, "key6":null}, {"key1":1, "key2":2, "key3":null, "key4":4}, {"key3":null, "key6":12}, {"key2":null, "key3":25}]
7 [{"key1":12, "key3":6}, null, {"key4":15, "key5":null}, {"key1":5}]
8 [{"key1":6, "key7":12}, {"key2":9}, {"key1":null, "key5":50}, null]
9 [{"key2":null, "key5":40}, null, {"key2":14, "key5":7}, {"key1":10, "key2":20, "key3":30, "key4":40, "key5":50, "key6":60, "key7":null}]
-- !sql_array_agg_struct --
1 [{"id":1}, {"id":1}, {"id":1}, {"id":1}, {"id":1}, null]
10 [{"id":10}, {"id":10}, {"id":10}, {"id":null}]
11 [{"id":11}, {"id":11}, {"id":11}, {"id":null}]
12 [{"id":12}, {"id":12}, {"id":12}, {"id":null}]
13 [{"id":13}, {"id":13}, {"id":13}, {"id":null}]
14 [{"id":14}, {"id":null}, {"id":14}, {"id":null}]
15 [{"id":15}, {"id":null}, {"id":15}, {"id":null}]
16 [{"id":16}, {"id":16}, {"id":16}, {"id":16}]
17 [{"id":17}, {"id":17}, {"id":17}, {"id":17}]
18 [{"id":18}, {"id":null}, {"id":18}, {"id":18}]
19 [{"id":19}, {"id":null}, {"id":19}, {"id":19}]
2 [{"id":2}, {"id":null}, {"id":2}, {"id":2}]
20 [{"id":20}, {"id":20}, {"id":null}, {"id":null}]
21 [{"id":21}]
22 [{"id":22}]
23 [{"id":23}]
24 [{"id":24}]
25 [{"id":25}]
26 [{"id":26}]
27 [{"id":27}]
28 [{"id":28}]
29 [{"id":29}]
3 [{"id":3}, {"id":3}, {"id":3}, {"id":3}]
30 [{"id":30}]
31 [{"id":31}]
32 [{"id":32}]
33 [{"id":33}]
34 [{"id":34}]
35 [{"id":35}]
36 [{"id":36}]
37 [{"id":37}]
38 [{"id":38}]
39 [{"id":39}]
4 [{"id":null}, {"id":4}, {"id":4}, {"id":4}]
40 [{"id":40}]
41 [{"id":41}]
42 [{"id":42}]
43 [{"id":43}]
44 [{"id":44}]
45 [{"id":45}]
46 [{"id":46}]
47 [{"id":47}]
48 [{"id":48}]
49 [{"id":49}]
5 [{"id":5}, {"id":null}, {"id":5}, {"id":5}]
50 [{"id":50}]
6 [{"id":6}, {"id":6}, {"id":6}, {"id":6}]
7 [{"id":null}, {"id":null}, {"id":null}, {"id":7}]
8 [{"id":8}, {"id":8}, {"id":8}, {"id":8}]
9 [{"id":9}, {"id":9}, {"id":9}, {"id":9}]