Skip to content

Commit bd3b066

Browse files
authored
Do not suggest NOT NULL in ydb import file csv (#15344)
1 parent 9c6936d commit bd3b066

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ydb/public/lib/ydb_cli/import/import.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,11 +1368,7 @@ TStatus TImportFileClient::TImpl::GenerateCreateTableFromCsv(IInputStream& input
13681368
auto& possibleTypeIt = possibleType.GetIterator();
13691369
TString typeText = possibleTypeIt != possibleType.GetAvailableTypesEnd()
13701370
&& possibleType.GetHasNonNulls() ? possibleTypeIt->ToString() : "Text";
1371-
res << " `" << header[i] << "` " << typeText;
1372-
if (!possibleType.GetHasNulls()) {
1373-
res << " NOT NULL";
1374-
}
1375-
res << ",";
1371+
res << " `" << header[i] << "` " << typeText << ",";
13761372
if (!possibleType.GetHasNonNulls()) {
13771373
res << " -- No data in this column to infer type";
13781374
}

0 commit comments

Comments
 (0)