Henry2SS opened a new issue #8204: URL: https://github.com/apache/incubator-doris/issues/8204
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues. ### Version master ### What's Wrong? `show partitions from tbl;` ``` +-------------+---------------+ | PartitionId | PartitionName | +-------------+---------------+ | 28004 | p20200101 | +-------------+---------------+ ``` `alter table tbl add temporary partition if not exists p20220220 values [('2022-02-20'), ('2022-02-21')) DISTRIBUTED BY HASH(k1) BUCKETS 10;` `show partitions from tbl;` ``` +-------------+---------------+ | PartitionId | PartitionName | +-------------+---------------+ | 28004 | p20200101 | +-------------+---------------+ ``` `show temporary partitions from tbl;` ``` +-------------+---------------+----------------+---------------------+--------------------+--------+--------------+----------------------------------------------------------------------------+-----------------+---------+----------------+---------------+---------------------+--------------------------+----------+------------+-------------------------+ | PartitionId | PartitionName | VisibleVersion | VisibleVersionTime | VisibleVersionHash | State | PartitionKey | Range | DistributionKey | Buckets | ReplicationNum | StorageMedium | CooldownTime | LastConsistencyCheckTime | DataSize | IsInMemory | ReplicaAllocation | +-------------+---------------+ | 29238 | p20220220 | +-------------+---------------+ ``` `alter table tbl add partition p20220220 values [('2022-02-20'), ('2022-02-21')) DISTRIBUTED BY HASH(k1) BUCKETS 10;` returns ERROR: `errCode = 2, detailMessage = Duplicate partition name p20220220` but actually `p20220220` is a temporary partition ### What You Expected? should allow to create partition. ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### 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 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