We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ydb import file csv
1 parent 9c6936d commit bd3b066Copy full SHA for bd3b066
ydb/public/lib/ydb_cli/import/import.cpp
@@ -1368,11 +1368,7 @@ TStatus TImportFileClient::TImpl::GenerateCreateTableFromCsv(IInputStream& input
1368
auto& possibleTypeIt = possibleType.GetIterator();
1369
TString typeText = possibleTypeIt != possibleType.GetAvailableTypesEnd()
1370
&& possibleType.GetHasNonNulls() ? possibleTypeIt->ToString() : "Text";
1371
- res << " `" << header[i] << "` " << typeText;
1372
- if (!possibleType.GetHasNulls()) {
1373
- res << " NOT NULL";
1374
- }
1375
- res << ",";
+ res << " `" << header[i] << "` " << typeText << ",";
1376
if (!possibleType.GetHasNonNulls()) {
1377
res << " -- No data in this column to infer type";
1378
}
0 commit comments