Skip to content

Conversation

@zclllyybb
Copy link
Contributor

pick #39580

…e same time (apache#39580)

before we forbid it in apache#33736, now
it's time to let it go.

now we support:
```sql
mysql> create table auto_dynamic(
    ->             k0 datetime(6) NOT NULL
    ->         )
    ->         auto partition by range (date_trunc(k0, 'year'))
    ->         (
    ->         )
    ->         DISTRIBUTED BY HASH(`k0`) BUCKETS 2
    ->         properties(
    ->             "dynamic_partition.enable" = "true",
    ->             "dynamic_partition.prefix" = "p",
    ->             "dynamic_partition.start" = "-50",
    ->             "dynamic_partition.end" = "0",
    ->             "dynamic_partition.time_unit" = "year",
    ->             "replication_num" = "1"
    ->         );
Query OK, 0 rows affected (0.12 sec)
```

with this, the users could manage their data more flexible

we will refactor the docs of it, and the only recommended way it set end
to zero.
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zclllyybb
Copy link
Contributor Author

run buildall

@yiguolei yiguolei merged commit d554f60 into apache:branch-2.1 Sep 11, 2024
@zclllyybb zclllyybb deleted the auto_dynamic_21 branch October 25, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants