user-GitHub-user opened a new issue, #27198:
URL: https://github.com/apache/doris/issues/27198

   ### 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
   
   2.0.2
   
   ### What's Wrong?
   
   when create table by BUCKETS AUTO, An export with partitions exports all of 
the table's data
   
   ### What You Expected?
   
   An export with partitions exports only the data in the specified partition
   
   ### How to Reproduce?
   
   `CREATE TABLE `kec` (
   `timestamp` datetime NULL COMMENT "时间"
   ) ENGINE=OLAP
   DUPLICATE KEY(`timestamp`)
   COMMENT ""
   PARTITION BY RANGE(timestamp)()
   DISTRIBUTED BY RANDOM BUCKETS AUTO
   PROPERTIES  
   (  
   "dynamic_partition.enable" = "true",  
   "dynamic_partition.time_unit" = "HOUR",  
   "dynamic_partition.end" = "24",  
   "dynamic_partition.prefix" = "p",  
   "replication_num" = "2"
   )`
   
   You need to change the time and partition key:
   `insert into kec values("2023-11-17 16:01:01");
    insert into kec values("2023-11-17 17:01:01");`
   
   `EXPORT TABLE kec PARTITION(p2023111717) 
   TO "file:///tmp/"
   PROPERTIES (
   "label" = "kec_p2023111717"
   );`
   
   `SHOW EXPORT  WHERE LABEL = "kec_p2023111717" ORDER BY StartTime DESC;`
   
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to