You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "htyoung (via GitHub)" <gi...@apache.org> on 2023/06/29 03:55:16 UTC

[GitHub] [doris] htyoung opened a new issue, #21316: [Bug] truncate partition table error when partition table has no partitions

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-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] yiguolei closed issue #21316: [Bug] truncate partition table error when partition table has no partitions

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei closed issue #21316: [Bug] truncate partition table error when partition table has no partitions
URL: https://github.com/apache/doris/issues/21316


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org