File tree Expand file tree Collapse file tree
sql/core/src/test/resources/sql-tests/results/postgreSQL Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1545select (select count(*)
1646 from (values (1)) t0(inner_c))
1747from (values (2),(3)) t1(outer_c)
18- -- !query 1 schema
48+ -- !query 4 schema
1949struct<scalarsubquery():bigint>
20- -- !query 1 output
50+ -- !query 4 output
21511
22521
You can’t perform that action at this time.
0 commit comments