wangbo commented on a change in pull request #2781: Batch Operate Rollup table
in Doris #2671
URL: https://github.com/apache/incubator-doris/pull/2781#discussion_r376756301
##########
File path: docs/documentation/cn/sql-reference/sql-statements/Data
Definition/CREATE TABLE.md
##########
@@ -550,6 +559,26 @@ under the License.
);
```
+12. Create a table with rollup index
+```
+ CREATE TABLE example_db.rolup_index_table
+ (
+ event_day DATE,
+ siteid INT DEFAULT '10',
+ citycode SMALLINT,
+ username VARCHAR(32) DEFAULT '',
+ pv BIGINT SUM DEFAULT '0'
+ )
+ AGGREGATE KEY(event_day, siteid, citycode, username)
+ DISTRIBUTED BY HASH(siteid) BUCKETS 10
+ rollup (
+ r1(event_day,siteid),
+ r2(event_day,citycode),
+ r3(event_day) from r1
Review comment:
👌
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]