Skip to content

Commit 49e6bad

Browse files
committed
Fixed tests
1 parent 1351863 commit 49e6bad

2 files changed

Lines changed: 45 additions & 14 deletions

File tree

tests/queries/0_stateless/02476_fuse_sum_count.reference

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,27 @@ QUERY id: 0
256256
QUERY id: 14, is_subquery: 1
257257
PROJECTION COLUMNS
258258
x Int64
259+
count(b) UInt64
259260
PROJECTION
260-
LIST id: 15, nodes: 1
261-
FUNCTION id: 16, function_name: sum, function_type: aggregate, result_type: Int64
261+
LIST id: 15, nodes: 2
262+
FUNCTION id: 16, function_name: tupleElement, function_type: ordinary, result_type: Int64
262263
ARGUMENTS
263-
LIST id: 17, nodes: 1
264-
COLUMN id: 18, column_name: b, result_type: Int8, source_id: 19
264+
LIST id: 17, nodes: 2
265+
FUNCTION id: 18, function_name: sumCount, function_type: aggregate, result_type: Tuple(Int64, UInt64)
266+
ARGUMENTS
267+
LIST id: 19, nodes: 1
268+
COLUMN id: 20, column_name: b, result_type: Int8, source_id: 21
269+
CONSTANT id: 22, constant_value: UInt64_1, constant_value_type: UInt8
270+
FUNCTION id: 23, function_name: tupleElement, function_type: ordinary, result_type: UInt64
271+
ARGUMENTS
272+
LIST id: 24, nodes: 2
273+
FUNCTION id: 18, function_name: sumCount, function_type: aggregate, result_type: Tuple(Int64, UInt64)
274+
ARGUMENTS
275+
LIST id: 19, nodes: 1
276+
COLUMN id: 20, column_name: b, result_type: Int8, source_id: 21
277+
CONSTANT id: 25, constant_value: UInt64_2, constant_value_type: UInt8
265278
JOIN TREE
266-
TABLE id: 19, table_name: default.fuse_tbl
279+
TABLE id: 21, table_name: default.fuse_tbl
267280
0 0 nan
268281
0 0 nan
269282
45 10 4.5 Decimal(38, 0) UInt64 Float64

tests/queries/0_stateless/02477_fuse_quantiles.reference

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,35 @@ QUERY id: 0
4848
QUERY id: 19, is_subquery: 1
4949
PROJECTION COLUMNS
5050
x Float64
51+
quantile(0.9)(b) Float64
5152
PROJECTION
52-
LIST id: 21, nodes: 1
53-
FUNCTION id: 22, function_name: quantile, function_type: aggregate, result_type: Float64
54-
PARAMETERS
55-
LIST id: 23, nodes: 1
56-
CONSTANT id: 24, constant_value: Float64_0.5, constant_value_type: Float64
53+
LIST id: 21, nodes: 2
54+
FUNCTION id: 22, function_name: arrayElement, function_type: ordinary, result_type: Float64
5755
ARGUMENTS
58-
LIST id: 25, nodes: 1
59-
COLUMN id: 26, column_name: b, result_type: Int32, source_id: 27
56+
LIST id: 23, nodes: 2
57+
FUNCTION id: 24, function_name: quantiles, function_type: aggregate, result_type: Array(Float64)
58+
PARAMETERS
59+
LIST id: 25, nodes: 2
60+
CONSTANT id: 26, constant_value: Float64_0.5, constant_value_type: Float64
61+
CONSTANT id: 27, constant_value: Float64_0.9, constant_value_type: Float64
62+
ARGUMENTS
63+
LIST id: 28, nodes: 1
64+
COLUMN id: 29, column_name: b, result_type: Int32, source_id: 30
65+
CONSTANT id: 31, constant_value: UInt64_1, constant_value_type: UInt8
66+
FUNCTION id: 32, function_name: arrayElement, function_type: ordinary, result_type: Float64
67+
ARGUMENTS
68+
LIST id: 33, nodes: 2
69+
FUNCTION id: 24, function_name: quantiles, function_type: aggregate, result_type: Array(Float64)
70+
PARAMETERS
71+
LIST id: 25, nodes: 2
72+
CONSTANT id: 26, constant_value: Float64_0.5, constant_value_type: Float64
73+
CONSTANT id: 27, constant_value: Float64_0.9, constant_value_type: Float64
74+
ARGUMENTS
75+
LIST id: 28, nodes: 1
76+
COLUMN id: 29, column_name: b, result_type: Int32, source_id: 30
77+
CONSTANT id: 34, constant_value: UInt64_2, constant_value_type: UInt8
6078
JOIN TREE
61-
TABLE id: 27, table_name: default.fuse_tbl
79+
TABLE id: 30, table_name: default.fuse_tbl
6280
GROUP BY
63-
LIST id: 28, nodes: 1
81+
LIST id: 35, nodes: 1
6482
COLUMN id: 18, column_name: x, result_type: Float64, source_id: 19

0 commit comments

Comments
 (0)