diff --git a/ydb/library/yql/providers/yt/gateway/native/yql_yt_spec.cpp b/ydb/library/yql/providers/yt/gateway/native/yql_yt_spec.cpp index 2aad48fb8643..66a4895f6263 100644 --- a/ydb/library/yql/providers/yt/gateway/native/yql_yt_spec.cpp +++ b/ydb/library/yql/providers/yt/gateway/native/yql_yt_spec.cpp @@ -472,6 +472,14 @@ void FillSpec(NYT::TNode& spec, spec["force_job_size_adjuster"] = *val; } } + + if (opProps.HasFlags(EYtOpProp::WithMapper)) { + spec["mapper"]["environment"]["TMPDIR"] = "."; + } + + if (opProps.HasFlags(EYtOpProp::WithReducer)) { + spec["reducer"]["environment"]["TMPDIR"] = "."; + } } void FillSecureVault(NYT::TNode& spec, const IYtGateway::TSecureParams& secureParams) {