-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AQUMV] Compute Aggregations on Materialized Views.
Support origin query has aggregations, compute Aggregations on materilized views whose query don't have Aggegations itself. create incremental materialized view mv as select c1 as mc1, c2 as mc2, c3 as mc3 from t1 where c1 > 90; Origin query: select count(c1)+1, sum(c2) filter (where c2 > 95), stddev(c3) from t1 where c1 > 90; Could be rewritten to: select count(mc1)+1, sum(mc2) filter (where mc2 > 95), stddev(mc3) from mv; All aggregate functions including count(*) are supported in AQUMV which is not limited to IVM's current aggregate functions: count, sum, avg. Complex expressions have aggregations, and aggregations with Filter clause are also supported. Authored-by: Zhang Mingli avamingli@gmail.com
- Loading branch information
Showing
3 changed files
with
341 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.