File tree Expand file tree Collapse file tree
integ-test/src/test/java/org/opensearch/sql/ppl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131import org .opensearch .sql .common .setting .Settings .Key ;
3232import org .opensearch .sql .legacy .SQLIntegTestCase ;
3333import org .opensearch .sql .util .RetryProcessor ;
34- import org .opensearch .sql .utils .YamlFormatter ;
3534
3635/** OpenSearch Rest integration test base for PPL testing. */
3736public 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 {
You can’t perform that action at this time.
0 commit comments