We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bef8c7 commit f7d2f1bCopy full SHA for f7d2f1b
1 file changed
integ-test/src/test/java/org/opensearch/sql/ppl/NewAddedCommandsIT.java
@@ -213,6 +213,17 @@ public void testConvertCommand() throws IOException {
213
}
214
215
216
+ @Test
217
+ public void testTransposeCommand() throws IOException {
218
+ JSONObject result;
219
+ try {
220
+ executeQuery(String.format("search source=%s | transpose ", TEST_INDEX_BANK));
221
+ } catch (ResponseException e) {
222
+ result = new JSONObject(TestUtils.getResponseBody(e.getResponse()));
223
+ verifyQuery(result);
224
+ }
225
226
+
227
private void verifyQuery(JSONObject result) throws IOException {
228
if (isCalciteEnabled()) {
229
assertFalse(result.getJSONArray("datarows").isEmpty());
0 commit comments