Skip to content

Conversation

@szza
Copy link

@szza szza commented Jul 21, 2023

Proposed changes

configure compaction_policy at table level better than doris-cluser level。like this:

CREATE TABLE example_db.table_hash
(
    k1 DATE,
    k2 DECIMAL(10, 2) DEFAULT "10.5",
    k3 CHAR(10) COMMENT "string column",
    k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
DUPLICATE KEY(k1, k2)
COMMENT "my first table"
PARTITION BY RANGE(k1)
(
    PARTITION p1 VALUES LESS THAN ("2020-02-01"),
    PARTITION p2 VALUES LESS THAN ("2020-03-01"),
    PARTITION p3 VALUES LESS THAN ("2020-04-01")
)
DISTRIBUTED BY HASH(k1) BUCKETS 32
PROPERTIES (
    "compaction_policy" = "TIME_SERIES"
);

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

…is-cluser level

Signed-off-by: shuzz <shuzz@shuyilink.com>
@szza szza changed the title [Feature]] configurable compaction_policy [Feature] configurable compaction_policy Jul 21, 2023
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@hf200012 hf200012 requested a review from dataroaring July 24, 2023 02:07
@hf200012 hf200012 changed the title [Feature] configurable compaction_policy [Feature](Compaction)configurable compaction_policy Jul 24, 2023
Signed-off-by: shuzz <shuzz@shuyilink.com>
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Signed-off-by: shuzz <shuzz@shuyilink.com>
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@xiaokang
Copy link
Contributor

duplicated with #22159

@dataroaring dataroaring closed this Sep 3, 2023
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