From d002a59f7bc66a1db746213a0a82d727ce53e1d1 Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Tue, 11 Jul 2023 15:32:01 -0700 Subject: [PATCH] remove unnecessary escape Signed-off-by: Yaliang Wu --- .../ml/engine/algorithms/remote/ConnectorUtils.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/ConnectorUtils.java b/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/ConnectorUtils.java index f3bfed3c3e..7eccd6155d 100644 --- a/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/ConnectorUtils.java +++ b/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/ConnectorUtils.java @@ -95,11 +95,6 @@ public static RemoteInferenceInputDataSet processInput(MLInput mlInput, Connecto } else { throw new IllegalArgumentException("Wrong input type"); } - Map escapedParameters = new HashMap<>(); - inputData.getParameters().entrySet().forEach(entry -> { - escapedParameters.put(entry.getKey(), escapeJava(entry.getValue())); - }); - inputData.setParameters(escapedParameters); return inputData; }