wyndia opened a new issue #4753: URL: https://github.com/apache/incubator-doris/issues/4753
**Describe the bug** Version: Apache Doris 0.12.0-rc03 Using `ALTER TABLE` to add a partiton to tables with "colocate_with" property will fail. **To Reproduce** 1. Create a table: ```SQL CREATE TABLE `test` ( `date` date, `userid` varchar(128) ) ENGINE=OLAP DUPLICATE KEY(`date`, `userid`) PARTITION BY RANGE(`date`)() DISTRIBUTED BY HASH(`userid`) BUCKETS 8 PROPERTIES ( "colocate_with" = "test" ); ``` 2. Try to add a partition: ```SQL ALTER TABLE test add PARTITION p1 VALUES [("2020-10-15"), ("2020-10-16")); ``` 3. See the error: ```SQL ERROR 1064 (HY000): Unexpected exception: null ``` ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org