Skip to content

Commit 9ea4736

Browse files
committed
Add test case output
1 parent 5d33dab commit 9ea4736

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

sql/core/src/test/resources/sql-tests/results/postgreSQL/aggregates_part3.sql.out

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Automatically generated by SQLQueryTestSuite
2-
-- Number of queries: 2
2+
-- Number of queries: 5
33

44

55
-- !query 0
@@ -12,11 +12,41 @@ It is not allowed to use an aggregate function in the argument of another aggreg
1212

1313

1414
-- !query 1
15+
select min(unique1) filter (where unique1 > 100) from tenk1
16+
-- !query 1 schema
17+
struct<min(unique1):int>
18+
-- !query 1 output
19+
101
20+
21+
22+
-- !query 2
23+
select sum(1/ten) filter (where ten > 0) from tenk1
24+
-- !query 2 schema
25+
struct<sum((1 div ten)):bigint>
26+
-- !query 2 output
27+
1000
28+
29+
30+
-- !query 3
31+
select ten, sum(distinct four) filter (where four > 10) from onek a
32+
group by ten
33+
having exists (select 1 from onek b where sum(distinct a.four) = b.four)
34+
-- !query 3 schema
35+
struct<ten:int,sum(DISTINCT four):bigint>
36+
-- !query 3 output
37+
0 2
38+
2 2
39+
4 2
40+
6 2
41+
8 2
42+
43+
44+
-- !query 4
1545
select (select count(*)
1646
from (values (1)) t0(inner_c))
1747
from (values (2),(3)) t1(outer_c)
18-
-- !query 1 schema
48+
-- !query 4 schema
1949
struct<scalarsubquery():bigint>
20-
-- !query 1 output
50+
-- !query 4 output
2151
1
2252
1

0 commit comments

Comments
 (0)