aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstepandrey <stepandrey@yandex-team.com>2022-12-28 16:47:28 +0300
committerstepandrey <stepandrey@yandex-team.com>2022-12-28 16:47:28 +0300
commit45e0a7c6b36d8fb5ba18f74c720d85c21d434932 (patch)
treeb53e398325a22a461203019830045ae6d1d5218d
parent29dc392c542f9c4f1b23c6c9f903d34def57c042 (diff)
downloadydb-45e0a7c6b36d8fb5ba18f74c720d85c21d434932.tar.gz
Fix Table does not exist while importing file without token to existing table
remove unnecessary code from client try fix error table does not exist fix table does not exist bug
-rw-r--r--ydb/public/lib/ydb_cli/import/import.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ydb/public/lib/ydb_cli/import/import.cpp b/ydb/public/lib/ydb_cli/import/import.cpp
index 160ff81100a..1d8e5b1928e 100644
--- a/ydb/public/lib/ydb_cli/import/import.cpp
+++ b/ydb/public/lib/ydb_cli/import/import.cpp
@@ -77,10 +77,12 @@ TStatus TImportFileClient::Import(const TString& filePath, const TString& dbPath
}
}
- auto result = NDump::DescribePath(*SchemeClient, dbPath).GetStatus();
- if (result != EStatus::SUCCESS) {
+ auto result = NDump::DescribePath(*SchemeClient, dbPath);
+ auto resultStatus = result.GetStatus();
+
+ if (resultStatus != EStatus::SUCCESS) {
return MakeStatus(EStatus::SCHEME_ERROR,
- TStringBuilder() << "Table does not exist: " << dbPath);
+ TStringBuilder() << result.GetIssues().ToString() << dbPath);
}
// If the filename passed is empty, read from stdin, else from the file.