aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Zuikov <chertus@gmail.com>2022-04-18 18:40:22 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-04-18 18:40:22 +0300
commit86304e375567b039455008cdc9b12cfc5f5c66de (patch)
treeef2392ae0a00c65a8687a3b2bbae27d2a3844aba
parent588fc4b8dc6cde4e910a512034844b3166341b6b (diff)
downloadydb-86304e375567b039455008cdc9b12cfc5f5c66de.tar.gz
KIKIMR-14565: fix CSV load with --header option in cli (Cherry pick commit r9314037)
REVIEW: 2440283 x-ydb-stable-ref: e957a0d7c0ae05e85fc97b3d4890d73bb374770e
-rw-r--r--ydb/public/lib/ydb_cli/import/import.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ydb/public/lib/ydb_cli/import/import.cpp b/ydb/public/lib/ydb_cli/import/import.cpp
index 911aaf2719..e9960a21f8 100644
--- a/ydb/public/lib/ydb_cli/import/import.cpp
+++ b/ydb/public/lib/ydb_cli/import/import.cpp
@@ -122,6 +122,7 @@ TStatus TImportFileClient::UpsertCsv(const TString& dataFile, const TString& dbP
headerRow += '\n';
buffer = headerRow;
csvSettings.set_header(true);
+ special = true;
}
if (special) {