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

   ### 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
   
   doris-2.1.6
   
   ### What's Wrong?
   
   In a cluster that only has SSD storage, creating a table not set storage 
medium, create table succeeds, but the output of the `SHOW CREATE TABLE` 
command incorrectly shows the storage medium as HDD, and execute `create table 
t4 like t3` will failed
   
   ### What You Expected?
   
   1. `create table t4 like t3` success
   2. `show create table t3` show t3 storage medium is ssd
   
   ### How to Reproduce?
   
   1. Deploy Doris with the disk medium set to SSD
   2. Create a table using SQL `create table t3(a bigint, b int) engine=olap 
uniqueKEY(a) distributed by hash (a) buckets 1 properties( "replication_num" = 
"1");
   `
   3. `show create table t3` , it will display table medium HHD
   4. `create table t4 like t3` will failed
   
   ### Anything Else?
   
   HOW to fix:
   1. When calling olapTable.setStorageMedium, also store the 
isSpecialStorageMedium flag
   2. Add isSpecialStorageMedium to the properties stored in TableProperty
   3. In the attribute table for ALTER TABLE, set the isSpecialStorageMedium to 
true
   at last, add a docker regression case for test it
   
   ### 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