doris icon indicating copy to clipboard operation
doris copied to clipboard

[Bug] 自动分桶数推算功能为何没生效

Open DA1OOO opened this issue 3 years ago • 1 comments

Discussed in https://github.com/apache/doris/discussions/27910

Originally posted by DA1OOO December 3, 2023 建表使用的BUCKETS AUTO ,但是建表的时候没有指定参数"estimate_partition_size" = "100G" image

我看文档写的默认没有指定的话,初次分桶大小按10G来算分桶数,我的第一个分区buckets数确实为10 image 但是为什么后面的分区buckets全部为10,官方文档不是写着会根据前七天的数据量来推算bucket数吗,我每个分区5G的数据应该分桶数大概是5。 image 我最新的分区数的bucket还是10。 我看了一些小表bucket还是一直保持在10。 第一个分区: image 最新的分: image

DA1OOO avatar Dec 03 '23 07:12 DA1OOO

新增分区方式: ALTER TABLE example_db.my_table ADD PARTITION p1 VALUES [("2014-01-01"), ("2014-02-01")); 没有指定分桶信息。

DA1OOO avatar Dec 03 '23 07:12 DA1OOO