Increase the functionality of advanced materialized view This feature already supported by legacy planner with PR #19650 This PR implement it in Nereids. This PR implement the features as below: 1. Support multiple columns in aggregate function. eg: select sum(c1 + c2) from t1; 2. Supports complex expressions. eg: select abs(c1), sum(abc(c1+1) + 1) from t1; TODO: 1. Support adding where in materialized view
17 lines
573 B
Plaintext
17 lines
573 B
Plaintext
-- This file is automatically generated. You should know what you did if you want to edit this
|
|
-- !sql --
|
|
test_rollup_agg1 AGG_KEYS siteid INT INT No true \N true
|
|
citycode SMALLINT SMALLINT No true \N true
|
|
username VARCHAR(32) VARCHAR(32) No true \N true
|
|
pv BIGINT BIGINT No false 0 SUM true
|
|
uv BIGINT BIGINT No false 0 SUM true
|
|
vv BIGINT BIGINT Yes false 0 SUM true
|
|
|
|
rollup_city AGG_KEYS citycode SMALLINT SMALLINT No true \N true
|
|
pv BIGINT BIGINT No false 0 SUM true
|
|
vv BIGINT BIGINT Yes false 0 SUM true
|
|
|
|
-- !sql --
|
|
1 200
|
|
|