Skip to content

Doris does not create partition in dynamic partition table #5042

@EmmyMiao87

Description

@EmmyMiao87

Describe the bug

Doris supports the creation of dynamic partition tables, but the actual partitions have not been created successfully.

To Reproduce
Steps to reproduce the behavior:

  1. admin set frontend config ("dynamic_partition_enable" = "false");
  2. create dynamic partition table
CREATE TABLE dynamic_partition
    (
    k1 DATE not null,
    k2 INT,
    k3 SMALLINT,
    v1 VARCHAR(2048),
    v2 DATETIME DEFAULT "2014-02-04 15:36:00"
    )
    ENGINE=olap
    DUPLICATE KEY(k1, k2, k3)
    PARTITION BY RANGE (k1)
    (
    PARTITION p1 VALUES LESS THAN ("2014-01-01"),
    PARTITION p2 VALUES LESS THAN ("2014-06-01"),
    PARTITION p3 VALUES LESS THAN ("2014-12-01")
    )
    DISTRIBUTED BY HASH(k2) BUCKETS 32
    PROPERTIES(
    "storage_medium" = "SSD",
    "dynamic_partition.time_unit" = "DAY",
    "dynamic_partition.start" = "-3",
    "dynamic_partition.end" = "3",
    "dynamic_partition.prefix" = "p",
    "dynamic_partition.buckets" = "32",
    "replication_num" = "1"
     );
  1. waiting for 10 minutes more, partition is not created.

Expected behavior

Forbidden creating dynamic partition table when dynamic_partition_enable is false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/catalogIssues or PRs related to catalog management

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions