diff options
author | hiddenpath <hiddenpath@yandex-team.com> | 2025-01-15 23:25:11 +0300 |
---|---|---|
committer | hiddenpath <hiddenpath@yandex-team.com> | 2025-01-15 23:42:58 +0300 |
commit | 183b86950af6daa68f57eb29b6b8ef252d5b3a15 (patch) | |
tree | a69cd2da925c2c55c2df636c8cbe459bd4159536 /yt/cpp/mapreduce/client/skiff.cpp | |
parent | abccd55428243410fdc9ab1c84039549a6d3ae06 (diff) | |
download | ydb-183b86950af6daa68f57eb29b6b8ef252d5b3a15.tar.gz |
YT-23616: Make BatchTransform implementation being common
commit_hash:4191c9aa7cde449475eddf88d8c04e1ebf0b8ad9
Diffstat (limited to 'yt/cpp/mapreduce/client/skiff.cpp')
-rw-r--r-- | yt/cpp/mapreduce/client/skiff.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt/cpp/mapreduce/client/skiff.cpp b/yt/cpp/mapreduce/client/skiff.cpp index 50ef7793ba..b89bde7854 100644 --- a/yt/cpp/mapreduce/client/skiff.cpp +++ b/yt/cpp/mapreduce/client/skiff.cpp @@ -279,6 +279,7 @@ TFormat CreateSkiffFormat(const NSkiff::TSkiffSchemaPtr& schema) { } NSkiff::TSkiffSchemaPtr CreateSkiffSchemaIfNecessary( + const IRawClientPtr& rawClient, const TClientContext& context, const IClientRetryPolicyPtr& clientRetryPolicy, const TTransactionId& transactionId, @@ -304,10 +305,9 @@ NSkiff::TSkiffSchemaPtr CreateSkiffSchemaIfNecessary( } auto nodes = NRawClient::BatchTransform( - clientRetryPolicy->CreatePolicyForGenericRequest(), - context, + rawClient, NRawClient::CanonizeYPaths(clientRetryPolicy->CreatePolicyForGenericRequest(), context, tablePaths), - [&] (IRawBatchRequest& batch, const TRichYPath& path) { + [&] (IRawBatchRequestPtr batch, const TRichYPath& path) { auto getOptions = TGetOptions() .AttributeFilter( TAttributeFilter() @@ -315,7 +315,7 @@ NSkiff::TSkiffSchemaPtr CreateSkiffSchemaIfNecessary( .AddAttribute("dynamic") .AddAttribute("type") ); - return batch.Get(transactionId, path.Path_, getOptions); + return batch->Get(transactionId, path.Path_, getOptions); }); TVector<NSkiff::TSkiffSchemaPtr> schemas; |