|
6 | 6 |
|
7 | 7 | package org.opensearch.sql.ppl; |
8 | 8 |
|
9 | | -import org.json.JSONObject; |
10 | | -import org.junit.jupiter.api.Test; |
11 | | -import org.opensearch.client.Request; |
12 | | -import org.opensearch.client.ResponseException; |
13 | | - |
14 | | -import java.io.IOException; |
15 | | - |
16 | 9 | import static org.opensearch.sql.legacy.TestsConstants.TEST_INDEX_DOG; |
17 | 10 | import static org.opensearch.sql.util.MatcherUtils.columnName; |
18 | | -import static org.opensearch.sql.util.MatcherUtils.rows; |
19 | 11 | import static org.opensearch.sql.util.MatcherUtils.verifyColumn; |
20 | 12 | import static org.opensearch.sql.util.MatcherUtils.verifyDataRows; |
21 | 13 |
|
| 14 | +import java.io.IOException; |
| 15 | +import org.json.JSONObject; |
| 16 | +import org.junit.jupiter.api.Test; |
| 17 | +import org.opensearch.client.Request; |
| 18 | +import org.opensearch.client.ResponseException; |
| 19 | + |
22 | 20 | public class DescribeCommandIT extends PPLIntegTestCase { |
23 | 21 |
|
24 | 22 | @Override |
@@ -88,25 +86,4 @@ public void describeCommandWithoutIndexShouldFailToParse() throws IOException { |
88 | 86 | assertTrue(e.getMessage().contains("Failed to parse query due to offending symbol")); |
89 | 87 | } |
90 | 88 | } |
91 | | - |
92 | | - @Test |
93 | | - public void testDescribeCommandWithPrometheusCatalog() throws IOException { |
94 | | - JSONObject result = executeQuery("describe my_prometheus.prometheus_http_requests_total"); |
95 | | - verifyColumn( |
96 | | - result, |
97 | | - columnName("TABLE_CATALOG"), |
98 | | - columnName("TABLE_SCHEMA"), |
99 | | - columnName("TABLE_NAME"), |
100 | | - columnName("COLUMN_NAME"), |
101 | | - columnName("DATA_TYPE") |
102 | | - ); |
103 | | - verifyDataRows(result, |
104 | | - rows("my_prometheus", "default", "prometheus_http_requests_total", "handler", "keyword"), |
105 | | - rows("my_prometheus", "default", "prometheus_http_requests_total", "code", "keyword"), |
106 | | - rows("my_prometheus", "default", "prometheus_http_requests_total", "instance", "keyword"), |
107 | | - rows("my_prometheus", "default", "prometheus_http_requests_total", "@value", "double"), |
108 | | - rows("my_prometheus", "default", "prometheus_http_requests_total", "@timestamp", |
109 | | - "timestamp"), |
110 | | - rows("my_prometheus", "default", "prometheus_http_requests_total", "job", "keyword")); |
111 | | - } |
112 | 89 | } |
0 commit comments