forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix](nereids) Fix get ralated partition table when nodata (apache#29453
) Support to create partition materialized view using nodata table Such as the table def as following: > CREATE TABLE `test_no_data` ( > `user_id` LARGEINT NOT NULL COMMENT '"用户id"', > `date` DATE NOT NULL COMMENT '"数据灌入日期时间"', > `num` SMALLINT NOT NULL COMMENT '"数量"' > ) ENGINE=OLAP > DUPLICATE KEY(`user_id`, `date`, `num`) > COMMENT 'OLAP' > PARTITION BY RANGE(`date`) > (PARTITION p201701_1000 VALUES [('0000-01-01'), ('2017-02-01')), > PARTITION p201702_2000 VALUES [('2017-02-01'), ('2017-03-01')), > PARTITION p201703_all VALUES [('2017-03-01'), ('2017-04-01'))) > DISTRIBUTED BY HASH(`user_id`) BUCKETS 2 > PROPERTIES ('replication_num' = '1') ; when table test_no_data has no data, it also support to create partition materialized view as following: > CREATE MATERIALIZED VIEW no_data_partition_mv > BUILD IMMEDIATE REFRESH AUTO ON MANUAL > partition by(`date`) > DISTRIBUTED BY RANDOM BUCKETS 2 > PROPERTIES ('replication_num' = '1') > AS > SELECT * FROM test_no_data where date > '2017-05-01'; >
- Loading branch information
Showing
7 changed files
with
170 additions
and
40 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
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
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
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