File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed
sql/core/src/test/resources/sql-tests Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,11 @@ select int_col, count(*) from myview group by int_col;
77-- group by should produce a single row.
88select ' foo' , count (* ) from myview group by 1 ;
99
10- -- group-by should not produce any rows.
10+ -- group-by should not produce any rows (whole stage code generation) .
1111select ' foo' from myview where int_col == 0 group by 1 ;
12+
13+ -- group-by should not produce any rows (hash aggregate).
14+ select ' foo' , approx_count_distinct(int_col) from myview where int_col == 0 group by 1 ;
15+
16+ -- group-by should not produce any rows (sort aggregate).
17+ select ' foo' , max (struct(int_col)) from myview where int_col == 0 group by 1 ;
Original file line number Diff line number Diff line change 11-- Automatically generated by SQLQueryTestSuite
2- -- Number of queries: 4
2+ -- Number of queries: 6
33
44
55-- !query 0
@@ -33,3 +33,19 @@ select 'foo' from myview where int_col == 0 group by 1
3333struct<foo:string>
3434-- !query 3 output
3535
36+
37+
38+ -- !query 4
39+ select 'foo', approx_count_distinct(int_col) from myview where int_col == 0 group by 1
40+ -- !query 4 schema
41+ struct<foo:string,approx_count_distinct(int_col):bigint>
42+ -- !query 4 output
43+
44+
45+
46+ -- !query 5
47+ select 'foo', max(struct(int_col)) from myview where int_col == 0 group by 1
48+ -- !query 5 schema
49+ struct<foo:string,max(struct(int_col)):struct<int_col:int>>
50+ -- !query 5 output
51+
You can’t perform that action at this time.
0 commit comments