Skip to content

Commit f7d2f1b

Browse files
committed
Resolve merge conflict: Add testTransposeCommand alongside testConvertCommand
Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
1 parent 0bef8c7 commit f7d2f1b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,17 @@ public void testConvertCommand() throws IOException {
213213
}
214214
}
215215

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+
216227
private void verifyQuery(JSONObject result) throws IOException {
217228
if (isCalciteEnabled()) {
218229
assertFalse(result.getJSONArray("datarows").isEmpty());

0 commit comments

Comments
 (0)