Skip to content

Commit 64033b3

Browse files
committed
feat: introduce scan.tag-name option to specify scanning from tag for reading given tag
1 parent 89e18ca commit 64033b3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/paimon/core/core_options_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ TEST(CoreOptionsTest, TestFromMap) {
147147
{Options::PARTITION_GENERATE_LEGACY_NAME, "false"},
148148
{Options::GLOBAL_INDEX_ENABLED, "false"},
149149
{Options::GLOBAL_INDEX_EXTERNAL_PATH, "FILE:///tmp/global_index/"},
150+
{Options::SCAN_TAG_NAME, "test-tag"},
150151
};
151152

152153
ASSERT_OK_AND_ASSIGN(CoreOptions core_options, CoreOptions::FromMap(options));
@@ -217,6 +218,7 @@ TEST(CoreOptionsTest, TestFromMap) {
217218
ASSERT_FALSE(core_options.GlobalIndexEnabled());
218219
ASSERT_TRUE(core_options.GetGlobalIndexExternalPath());
219220
ASSERT_EQ(core_options.GetGlobalIndexExternalPath().value(), "FILE:///tmp/global_index/");
221+
ASSERT_EQ(core_options.GetScanTagName().value(), "test-tag");
220222
}
221223

222224
TEST(CoreOptionsTest, TestInvalidCase) {

src/paimon/core/utils/tag_manager_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2026-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)