diff options
| author | hiddenpath <[email protected]> | 2025-01-16 00:49:07 +0300 |
|---|---|---|
| committer | hiddenpath <[email protected]> | 2025-01-16 01:07:01 +0300 |
| commit | 8dff5c10763551a5b2e82294518d7d95d68bec23 (patch) | |
| tree | 2cebe415c5a7b7c04b979964c48ec4d36c613d01 /yt/cpp/mapreduce/client/operation.cpp | |
| parent | 0395c5087038d4d95d8f64c67e458add6ac040fd (diff) | |
YT-23616: Make implementation of CanonizeYPath method being common
commit_hash:7f3ecc44b4299acc4fc7b0f463eceac61d0b0156
Diffstat (limited to 'yt/cpp/mapreduce/client/operation.cpp')
| -rw-r--r-- | yt/cpp/mapreduce/client/operation.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/yt/cpp/mapreduce/client/operation.cpp b/yt/cpp/mapreduce/client/operation.cpp index bfb56b4a738..ef7015a6f1b 100644 --- a/yt/cpp/mapreduce/client/operation.cpp +++ b/yt/cpp/mapreduce/client/operation.cpp @@ -280,8 +280,8 @@ TSimpleOperationIo CreateSimpleOperationIo( structuredJob, preparer, options, - CanonizeStructuredTableList(preparer.GetContext(), GetStructuredInputs(spec)), - CanonizeStructuredTableList(preparer.GetContext(), GetStructuredOutputs(spec)), + CanonizeStructuredTableList(preparer.GetClient()->GetRawClient(), GetStructuredInputs(spec)), + CanonizeStructuredTableList(preparer.GetClient()->GetRawClient(), GetStructuredOutputs(spec)), hints, nodeReaderFormat, GetColumnsUsedInOperation(spec)); @@ -303,8 +303,8 @@ TSimpleOperationIo CreateSimpleOperationIo( } }; - auto inputs = NRawClient::CanonizeYPaths(/* retryPolicy */ nullptr, preparer.GetContext(), spec.GetInputs()); - auto outputs = NRawClient::CanonizeYPaths(/* retryPolicy */ nullptr, preparer.GetContext(), spec.GetOutputs()); + auto inputs = NRawClient::CanonizeYPaths(preparer.GetClient()->GetRawClient(), spec.GetInputs()); + auto outputs = NRawClient::CanonizeYPaths(preparer.GetClient()->GetRawClient(), spec.GetOutputs()); VerifyHasElements(inputs, "input"); VerifyHasElements(outputs, "output"); @@ -1632,9 +1632,9 @@ void ExecuteMapReduce( TMapReduceOperationSpec spec = spec_; TMapReduceOperationIo operationIo; - auto structuredInputs = CanonizeStructuredTableList(preparer->GetContext(), spec.GetStructuredInputs()); - auto structuredMapOutputs = CanonizeStructuredTableList(preparer->GetContext(), spec.GetStructuredMapOutputs()); - auto structuredOutputs = CanonizeStructuredTableList(preparer->GetContext(), spec.GetStructuredOutputs()); + auto structuredInputs = CanonizeStructuredTableList(preparer->GetClient()->GetRawClient(), spec.GetStructuredInputs()); + auto structuredMapOutputs = CanonizeStructuredTableList(preparer->GetClient()->GetRawClient(), spec.GetStructuredMapOutputs()); + auto structuredOutputs = CanonizeStructuredTableList(preparer->GetClient()->GetRawClient(), spec.GetStructuredOutputs()); const bool inferOutputSchema = options.InferOutputSchema_.GetOrElse(preparer->GetContext().Config->InferTableSchema); @@ -1898,9 +1898,9 @@ void ExecuteRawMapReduce( YT_LOG_DEBUG("Starting raw map-reduce operation (PreparationId: %v)", preparer->GetPreparationId()); TMapReduceOperationIo operationIo; - operationIo.Inputs = NRawClient::CanonizeYPaths(/* retryPolicy */ nullptr, preparer->GetContext(), spec.GetInputs()); - operationIo.MapOutputs = NRawClient::CanonizeYPaths(/* retryPolicy */ nullptr, preparer->GetContext(), spec.GetMapOutputs()); - operationIo.Outputs = NRawClient::CanonizeYPaths(/* retryPolicy */ nullptr, preparer->GetContext(), spec.GetOutputs()); + operationIo.Inputs = NRawClient::CanonizeYPaths(preparer->GetClient()->GetRawClient(), spec.GetInputs()); + operationIo.MapOutputs = NRawClient::CanonizeYPaths(preparer->GetClient()->GetRawClient(), spec.GetMapOutputs()); + operationIo.Outputs = NRawClient::CanonizeYPaths(preparer->GetClient()->GetRawClient(), spec.GetOutputs()); VerifyHasElements(operationIo.Inputs, "inputs"); VerifyHasElements(operationIo.Outputs, "outputs"); @@ -1947,8 +1947,8 @@ void ExecuteSort( { YT_LOG_DEBUG("Starting sort operation (PreparationId: %v)", preparer->GetPreparationId()); - auto inputs = NRawClient::CanonizeYPaths(/* retryPolicy */ nullptr, preparer->GetContext(), spec.Inputs_); - auto output = NRawClient::CanonizeYPath(nullptr, preparer->GetContext(), spec.Output_); + auto inputs = NRawClient::CanonizeYPaths(preparer->GetClient()->GetRawClient(), spec.Inputs_); + auto output = NRawClient::CanonizeYPath(preparer->GetClient()->GetRawClient(), spec.Output_); if (options.CreateOutputTables_) { CheckInputTablesExist(*preparer, inputs); @@ -1996,8 +1996,8 @@ void ExecuteMerge( { YT_LOG_DEBUG("Starting merge operation (PreparationId: %v)", preparer->GetPreparationId()); - auto inputs = NRawClient::CanonizeYPaths(/* retryPolicy */ nullptr, preparer->GetContext(), spec.Inputs_); - auto output = NRawClient::CanonizeYPath(nullptr, preparer->GetContext(), spec.Output_); + auto inputs = NRawClient::CanonizeYPaths(preparer->GetClient()->GetRawClient(), spec.Inputs_); + auto output = NRawClient::CanonizeYPath(preparer->GetClient()->GetRawClient(), spec.Output_); if (options.CreateOutputTables_) { CheckInputTablesExist(*preparer, inputs); @@ -2046,7 +2046,7 @@ void ExecuteErase( { YT_LOG_DEBUG("Starting erase operation (PreparationId: %v)", preparer->GetPreparationId()); - auto tablePath = NRawClient::CanonizeYPath(nullptr, preparer->GetContext(), spec.TablePath_); + auto tablePath = NRawClient::CanonizeYPath(preparer->GetClient()->GetRawClient(), spec.TablePath_); TNode specNode = BuildYsonNodeFluently() .BeginMap() @@ -2082,8 +2082,8 @@ void ExecuteRemoteCopy( { YT_LOG_DEBUG("Starting remote copy operation (PreparationId: %v)", preparer->GetPreparationId()); - auto inputs = NRawClient::CanonizeYPaths(/* retryPolicy */ nullptr, preparer->GetContext(), spec.Inputs_); - auto output = NRawClient::CanonizeYPath(nullptr, preparer->GetContext(), spec.Output_); + auto inputs = NRawClient::CanonizeYPaths(preparer->GetClient()->GetRawClient(), spec.Inputs_); + auto output = NRawClient::CanonizeYPath(preparer->GetClient()->GetRawClient(), spec.Output_); if (options.CreateOutputTables_) { CreateOutputTable(*preparer, output); |
