diff options
author | ifsmirnov <ifsmirnov@yandex-team.com> | 2023-10-02 20:22:58 +0300 |
---|---|---|
committer | ifsmirnov <ifsmirnov@yandex-team.com> | 2023-10-02 21:10:06 +0300 |
commit | ce7af734dc47d603838bfced0285c37cd060df1d (patch) | |
tree | 21bd045ef145e5b7b818be5a4039b801b9586f15 | |
parent | 0fffde075dc96543465a2e8a399608c79e89b90d (diff) | |
download | ydb-ce7af734dc47d603838bfced0285c37cd060df1d.tar.gz |
YT-20103: Support setting initial tablet trimmed row count on reshard and creation
-rw-r--r-- | yt/yt/client/api/table_client.h | 1 | ||||
-rw-r--r-- | yt/yt/client/driver/table_commands.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/yt/yt/client/api/table_client.h b/yt/yt/client/api/table_client.h index 5c47d326dfa..7232cdc23f7 100644 --- a/yt/yt/client/api/table_client.h +++ b/yt/yt/client/api/table_client.h @@ -165,6 +165,7 @@ struct TReshardTableOptions std::optional<bool> Uniform; std::optional<bool> EnableSlicing; std::optional<double> SlicingAccuracy; + std::vector<i64> TrimmedRowCounts; }; struct TReshardTableAutomaticOptions diff --git a/yt/yt/client/driver/table_commands.cpp b/yt/yt/client/driver/table_commands.cpp index 9b002b07154..c211b791114 100644 --- a/yt/yt/client/driver/table_commands.cpp +++ b/yt/yt/client/driver/table_commands.cpp @@ -533,6 +533,8 @@ TReshardTableCommand::TReshardTableCommand() RegisterParameter("slicing_accuracy", Options.SlicingAccuracy) .Default() .GreaterThan(0); + RegisterParameter("trimmed_row_counts", Options.TrimmedRowCounts) + .Default(); RegisterPostprocessor([&] () { if (PivotKeys && TabletCount) { |