Skip to content

Commit d98ea41

Browse files
committed
Optimize tests
1 parent 6f9e839 commit d98ea41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/test/resources/sql-tests/inputs/group-by-filter.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ select dept_id, count(distinct emp_name), count(distinct hiredate), sum(salary)
6666
-- select dept_id, count(distinct emp_name) filter (where id > 200), count(distinct emp_name), sum(salary) from emp group by dept_id;
6767
-- select dept_id, count(distinct emp_name) filter (where id > 200), count(distinct emp_name) filter (where hiredate > date "2003-01-01"), sum(salary) from emp group by dept_id;
6868

69-
-- Aggregate with filter and grouped by literals (hash aggregate).
69+
-- Aggregate with filter and grouped by literals (hash aggregate), here the input table is filtered using WHERE.
7070
SELECT 'foo', APPROX_COUNT_DISTINCT(a) FILTER (WHERE b >= 0) FROM testData WHERE a = 0 GROUP BY 1;
7171

72-
-- Aggregate with filter and grouped by literals (sort aggregate).
72+
-- Aggregate with filter and grouped by literals (sort aggregate), here the input table is filtered using WHERE.
7373
SELECT 'foo', MAX(STRUCT(a)) FILTER (WHERE b >= 1) FROM testData WHERE a = 0 GROUP BY 1;
7474

7575
-- Aggregate with filter and complex GroupBy expressions.

0 commit comments

Comments
 (0)