Skip to content

Commit 0799127

Browse files
zloboberrobot-piglet
authored andcommitted
Support YT_KEEP_TEMP_TABLES environment variable in C++ SDK
No description --- c5f81efe57e11992b55a5cbbf3dfff08b790c28c Pull Request resolved: ytsaurus/ytsaurus#813
1 parent f729a6b commit 0799127

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

yt/cpp/mapreduce/interface/config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ void TConfig::Reset()
225225
"//tmp/yt_wrapper/table_storage");
226226
RemoteTempTablesDirectory = GetEnv("YT_TEMP_DIR",
227227
RemoteTempTablesDirectory);
228+
KeepTempTables = GetBool("YT_KEEP_TEMP_TABLES");
228229

229230
InferTableSchema = false;
230231

yt/cpp/mapreduce/interface/config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ struct TConfig
126126

127127
TString RemoteTempFilesDirectory;
128128
TString RemoteTempTablesDirectory;
129+
// @brief Keep temp tables produced by TTempTable (despite their name). Should not be used in user programs,
130+
// but may be useful for setting via environment variable for debugging purposes.
131+
bool KeepTempTables = false;
129132

130133
//
131134
// Infer schemas for nonexstent tables from typed rows (e.g. protobuf)

0 commit comments

Comments
 (0)