Skip to content

Commit

Permalink
fix: min, max with append only
Browse files Browse the repository at this point in the history
  • Loading branch information
chloeminkyung committed Oct 4, 2023
1 parent 1b8ddc3 commit 7165e1b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dozer-tests/src/sql_tests/full/aggr_append_only.test
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,36 @@ INSERT INTO Users (id, Name, City, Country, Salary) VALUES (22, 'Hans Muller', '
query TR
SELECT Country, MAX_APPEND_ONLY(Salary) FROM Users GROUP BY Country;
----
Argentina 60000
Australia 65000
Canada 80000
Egypt 55000
France 70000
Germany 70000
Italy 50000
Japan 75000
Mexico 70000
South Korea 85000
Spain 75000
Sweden 65000
UK 80000
USA 75000

query TR
SELECT Country, MIN_APPEND_ONLY(Salary) FROM Users WHERE Salary >= 1 GROUP BY Country;
----
Argentina 60000
Australia 65000
Canada 60000
Egypt 55000
France 70000
Germany 70000
Italy 50000
Japan 75000
Mexico 70000
South Korea 85000
Spain 60000
Sweden 65000
UK 80000
USA 45000

0 comments on commit 7165e1b

Please sign in to comment.