From 77f6bc8994443c4031dd8d42db1dc6884ee08751 Mon Sep 17 00:00:00 2001 From: Ilia Shakhov Date: Fri, 18 Oct 2024 17:36:57 +0300 Subject: [PATCH] Enhance help for ImportData option in ydb tools restore (#10599) --- ydb/public/lib/ydb_cli/commands/ydb_tools.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ydb/public/lib/ydb_cli/commands/ydb_tools.cpp b/ydb/public/lib/ydb_cli/commands/ydb_tools.cpp index f0f67f0ce234..742c1a9d2fca 100644 --- a/ydb/public/lib/ydb_cli/commands/ydb_tools.cpp +++ b/ydb/public/lib/ydb_cli/commands/ydb_tools.cpp @@ -180,8 +180,10 @@ void TCommandRestore::Config(TConfig& config) { .StoreTrue(&UseBulkUpsert) .Hidden(); // Deprecated. Using ImportData should be more effective. - config.Opts->AddLongOption("import-data", "Use ImportData - a more efficient way to upload data with lower consistency level." - " Global secondary indexes are not supported in this mode.") + config.Opts->AddLongOption("import-data", "Use ImportData - a more efficient way to upload data." + " ImportData will throw an error if you try to upload data into an existing table that has" + " secondary indexes or is in the process of building them. If you need to restore a table" + " with secondary indexes, make sure it's not already present in the scheme.") .StoreTrue(&UseImportData); config.Opts->MutuallyExclusive("bandwidth", "rps");