aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/interface/helpers.cpp
diff options
context:
space:
mode:
authorapachee <apachee@yandex-team.com>2024-05-24 20:47:38 +0300
committerapachee <apachee@yandex-team.com>2024-05-24 20:58:06 +0300
commit3e42aa91c70358fdd3ec39d0ac23072fc230b209 (patch)
tree422612a54143006d874a3997b1ef10efe34da552 /yt/cpp/mapreduce/interface/helpers.cpp
parentb45547676013a5d43cd0072a85643326e686b6fc (diff)
downloadydb-3e42aa91c70358fdd3ec39d0ac23072fc230b209.tar.gz
YT-21308: Add redirect_stdout_to_stderr flag for C++ client
Adds redirect_stdout_to_stderr spec option for operations that allows writing to stdout as if it was stderr. 6a8ac5f21955a79848d86f72715628c7b8bb65c4
Diffstat (limited to 'yt/cpp/mapreduce/interface/helpers.cpp')
-rw-r--r--yt/cpp/mapreduce/interface/helpers.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/helpers.cpp b/yt/cpp/mapreduce/interface/helpers.cpp
new file mode 100644
index 0000000000..f396883ea5
--- /dev/null
+++ b/yt/cpp/mapreduce/interface/helpers.cpp
@@ -0,0 +1,18 @@
+#include "helpers.h"
+
+#include <util/string/cast.h>
+
+#include <util/system/env.h>
+
+namespace NYT {
+
+////////////////////////////////////////////////////////////////////////////////
+
+int GetJobFirstOutputTableFD()
+{
+ return FromString<int>(GetEnv("YT_FIRST_OUTPUT_TABLE_FD", "1"));
+}
+
+////////////////////////////////////////////////////////////////////////////////
+
+} // namespace NYT