shawn-happy opened a new issue, #21613:
URL: https://github.com/apache/doris/issues/21613

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   1.2
   
   ### What's Wrong?
   
   ```
   CREATE TABLE IF NOT EXISTS t_user
   (   
       `id` bigint not null comment "用户主键",
       `username` varchar(50) not null comment "用户名",
       `password` varchar(50) not null comment "密码",
       `createTime` DATETIME NOT NULL COMMENT "日志时间"
   )
   DUPLICATE KEY(`id`, `username`)
   PARTITION BY RANGE (`createTime`) ()
   DISTRIBUTED BY HASH(`id`) BUCKETS 3
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 3"
   );
   ```
   This is my create table statement, An error was reported while executing the 
insert statement
   
   ```
   insert into t_user (id, username, password, createTime) values (1, "shawn", 
"shawn", now());
   ```
   
   error msg:
   ```
   errCode = 2, detailMessage = data cannot be inserted into table with empty 
partition. Use `SHOW PARTITIONS FROM t_user` to see the currently partitions of 
this table. 
   ```
   
   ### What You Expected?
   
   If empty partition range is not supported,maybe when create table with 
partition range by (col1[, col2, ....])() throw error
   or auto partition by [col1, col2,...]
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

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

Reply via email to