summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/operation.cpp
diff options
context:
space:
mode:
authorgaltsev <[email protected]>2023-09-06 20:09:13 +0300
committergaltsev <[email protected]>2023-09-06 20:33:42 +0300
commit29be1f4aa0b20fec66f2ad2c213006fade44c4fc (patch)
tree043d7e44b9bf3d0ffcd0379e60f11ef2ab506f3a /yt/cpp/mapreduce/client/operation.cpp
parent484d2b621c25885e20fdf5c55c1b844e3b3b3d78 (diff)
Add `layer_paths` user job spec option to the C++ interface
Diffstat (limited to 'yt/cpp/mapreduce/client/operation.cpp')
-rw-r--r--yt/cpp/mapreduce/client/operation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/client/operation.cpp b/yt/cpp/mapreduce/client/operation.cpp
index a14a8b330cf..240dd8850a9 100644
--- a/yt/cpp/mapreduce/client/operation.cpp
+++ b/yt/cpp/mapreduce/client/operation.cpp
@@ -690,6 +690,9 @@ void BuildUserJobFluently(
fluent
.Item("file_paths").List(preparer.GetFiles())
+ .DoIf(!preparer.GetLayers().empty(), [&] (TFluentMap fluentMap) {
+ fluentMap.Item("layer_paths").List(preparer.GetLayers());
+ })
.Item("command").Value(preparer.GetCommand())
.Item("class_name").Value(preparer.GetClassName())
.DoIf(!userJobSpec.Environment_.empty(), [&] (TFluentMap fluentMap) {