htyoung opened a new issue, #21316:
URL: https://github.com/apache/doris/issues/21316

   ### 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
   
   version 1.2.5-rc01 and later version
   
   ### What's Wrong?
   
   when truncate a partition table which current has no partitions, it will 
report "Unexpected exception: null"
   
   <img width="1201" alt="image" 
src="https://github.com/apache/doris/assets/9734567/1c698771-439b-4b2b-a847-088e188236e7";>
   
   #非动态分区表
   create table if not exists truncate_static_partition_table_test
   (
        col1 date not null comment '',
        col2 varchar(255) replace null comment '',
        col3 int sum null comment ''
   )
   ENGINE = OLAP AGGREGATE KEY(`col1`) COMMENT 'truncate test' 
   PARTITION BY RANGE(`col1`)() 
   DISTRIBUTED BY HASH(`col1`) BUCKETS 1 PROPERTIES (
     "replication_allocation" = "tag.location.default: 1"
   );
   
   ### What You Expected?
   
   truncate sql run success
   
   ### How to Reproduce?
   
   <img width="1273" alt="image" 
src="https://github.com/apache/doris/assets/9734567/0a3322a1-453d-45fc-a1ed-e2b99d696e75";>
   
   
   ### Anything Else?
   
   I have compared the latest master branch code, this bug still exists
   
   ### Are you willing to submit PR?
   
   - [X] 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