HHoflittlefish777 opened a new pull request, #22130:
URL: https://github.com/apache/doris/pull/22130
## Proposed changes
The lazy open goal is to reduce num of open partition, but it useless,
test case:
CREATE TABLE test_partition_version (
TIME_STAMP datev2 NOT NULL COMMENT '采集日期'
) ENGINE=OLAP
DUPLICATE KEY(TIME_STAMP)
COMMENT 'OLAP'
PARTITION BY RANGE(TIME_STAMP)
(
PARTITION p20221220 VALUES [('2022-12-20'), ('2022-12-21')),
PARTITION p20221221 VALUES [('2022-12-21'), ('2022-12-22'))
)
DISTRIBUTED BY HASH(TIME_STAMP) BUCKETS 10
PROPERTIES
(
"replication_allocation" = "tag.location.default: 1"
);
insert into test_partition_version values ('2022-12-20')
when open lazy open
image
when close lazy open
The action is the same with config lazy open.only written partition version
is added and commit to FE.
image
Therefore, it unnecessary to use lazy open.
<!--Describe your changes.-->
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]