Files
doris/regression-test/data/query_p0/aggregate/array_agg.out
xy 45dfbeb8b3 [feature](agg) add the aggregation function 'array_agg' #23474
This function requires one arguments just as ARRAY_AGG(col) and col means the column whose values you want to aggregate.
This function Aggregates the values including NULL in a column into an array and returns a value of the ARRAY data type.
2023-09-07 10:21:55 +08:00

68 lines
1.3 KiB
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !sql1 --
["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"]
-- !sql2 --
["alex", NULL, "LC", "LC", "LC", "LC"]
["LB"]
["LC"]
["LA"]
["LB"]
["LC"]
["LA"]
["LC"]
["LA"]
["LB"]
["LC"]
["LA"]
["LB"]
[NULL, "LC"]
[NULL, "LC", "LC"]
[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 --
[""]
-- !sql7 --
["LC", "LB", "alex"]
["LC", "LB", "LA"]
["LC", NULL, "LA"]
["LC", "LB", "LA"]
["LC", "LB", "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]