diff options
author | Maxim Akhmedov <[email protected]> | 2024-09-02 10:59:52 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2024-09-02 11:12:07 +0300 |
commit | 07991279b3ddf89ef2a7baec78a8ad93e5bc7fbb (patch) | |
tree | be11844a2eeed4961f6a7ef7f02dd0c37e8d525c | |
parent | f729a6b7b76181ee857bdb632d3a4661df9ade9e (diff) |
Support YT_KEEP_TEMP_TABLES environment variable in C++ SDK
No description
---
c5f81efe57e11992b55a5cbbf3dfff08b790c28c
Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/813
-rw-r--r-- | yt/cpp/mapreduce/interface/config.cpp | 1 | ||||
-rw-r--r-- | yt/cpp/mapreduce/interface/config.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/config.cpp b/yt/cpp/mapreduce/interface/config.cpp index 1ee5a77af7f..879bf795614 100644 --- a/yt/cpp/mapreduce/interface/config.cpp +++ b/yt/cpp/mapreduce/interface/config.cpp @@ -225,6 +225,7 @@ void TConfig::Reset() "//tmp/yt_wrapper/table_storage"); RemoteTempTablesDirectory = GetEnv("YT_TEMP_DIR", RemoteTempTablesDirectory); + KeepTempTables = GetBool("YT_KEEP_TEMP_TABLES"); InferTableSchema = false; diff --git a/yt/cpp/mapreduce/interface/config.h b/yt/cpp/mapreduce/interface/config.h index 27a31281bac..a8baac8d4f5 100644 --- a/yt/cpp/mapreduce/interface/config.h +++ b/yt/cpp/mapreduce/interface/config.h @@ -126,6 +126,9 @@ struct TConfig TString RemoteTempFilesDirectory; TString RemoteTempTablesDirectory; + // @brief Keep temp tables produced by TTempTable (despite their name). Should not be used in user programs, + // but may be useful for setting via environment variable for debugging purposes. + bool KeepTempTables = false; // // Infer schemas for nonexstent tables from typed rows (e.g. protobuf) |