Skip to content

Commit e8f0277

Browse files
committed
Update
Signed-off-by: Peng Huo <penghuo@gmail.com>
1 parent c03facf commit e8f0277

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

integ-test/src/test/java/org/opensearch/sql/ppl/PPLIntegTestCase.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import org.opensearch.sql.common.setting.Settings.Key;
3232
import org.opensearch.sql.legacy.SQLIntegTestCase;
3333
import org.opensearch.sql.util.RetryProcessor;
34-
import org.opensearch.sql.utils.YamlFormatter;
3534

3635
/** OpenSearch Rest integration test base for PPL testing. */
3736
public abstract class PPLIntegTestCase extends SQLIntegTestCase {
@@ -66,13 +65,7 @@ protected String explainQueryYaml(String query) throws IOException {
6665
Response response = client().performRequest(buildRequest(query, YAML_EXPLAIN_API_ENDPOINT));
6766
Assert.assertEquals(200, response.getStatusLine().getStatusCode());
6867
String responseBody = getResponseBody(response, true);
69-
return responseBody.replace("\\r\\n", "\\n");
70-
}
71-
72-
protected String explainQueryToYaml(String query) throws IOException {
73-
String jsonResponse = explainQueryToString(query);
74-
JSONObject jsonObject = jsonify(jsonResponse);
75-
return YamlFormatter.formatToYaml(jsonObject);
68+
return responseBody;
7669
}
7770

7871
protected String explainQueryToString(String query, boolean extended) throws IOException {

0 commit comments

Comments
 (0)