You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
Version
doris-2.1.6
What's Wrong?
When creating a table with dynamic partitioning in Doris, the generated partitions include an extra day component (e.g., '20250201' instead of '202502'). This causes insertions with the expected year_month format to fail due to missing partitions.
What You Expected?
The partitions should be created with the year_month values as integers representing the year and month (e.g., '202502'), without the extra day component.
How to Reproduce?
Create a table with dynamic partitioning set to partition by month.
CREATETABLE `test_tbl` (
`year_month`int(11) NOT NULL,
`unique_product_id`varcharNOT NULL
) ENGINE=OLAP
UNIQUE KEY(`year_month`,`unique_product_id`)
PARTITION BY RANGE(`year_month`)
(
PARTITION p_initial VALUES LESS THAN (202201)
)
DISTRIBUTED BY HASH(`unique_product_id`) BUCKETS 16
PROPERTIES (
"dynamic_partition.enable"="true",
"dynamic_partition.time_unit"="month",
"dynamic_partition.start"="-25",
"dynamic_partition.end"="2",
"dynamic_partition.prefix"="p",
"dynamic_partition.buckets"="16",
"replication_num"="3",
"in_memory"="false",
"storage_format"="V2"
);
2.Execute SHOW CREATE TABLE to view the partition definitions.
Search before asking
Version
doris-2.1.6
What's Wrong?
When creating a table with dynamic partitioning in Doris, the generated partitions include an extra day component (e.g., '20250201' instead of '202502'). This causes insertions with the expected year_month format to fail due to missing partitions.
What You Expected?
The partitions should be created with the year_month values as integers representing the year and month (e.g., '202502'), without the extra day component.
How to Reproduce?
2.Execute SHOW CREATE TABLE to view the partition definitions.
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: