Skip to content

Commit 1a998e8

Browse files
Uninitialised variable read fix (#9873)
1 parent e8a4121 commit 1a998e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ydb/core/external_sources/object_storage/inference/infer_config.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ std::shared_ptr<FormatConfig> MakeFormatConfig(const THashMap<TString, TString>&
6060
EFileFormat format;
6161
if (auto formatPtr = params.FindPtr("format"); formatPtr) {
6262
format = ConvertFileFormat(*formatPtr);
63+
} else {
64+
throw yexception() << "format unspecified, use format parameter with type inferring";
6365
}
6466

6567
if (auto delimiter = params.FindPtr("csvdelimiter"); delimiter) {

0 commit comments

Comments
 (0)