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 @@ -213,21 +213,20 @@ public void testTransposeCommand() throws IOException {
213213 }
214214 }
215215
216- @ Test
217- public void testFieldFormatCommand () throws IOException {
218- JSONObject result ;
219- try {
220- executeQuery (
221- String .format (
222- "search source=%s | fieldformat double_balance = balance * 2 " , TEST_INDEX_BANK ));
223- } catch (ResponseException e ) {
224- result = new JSONObject (TestUtils .getResponseBody (e .getResponse ()));
225- verifyQuery (result );
226- }
216+ @ Test
217+ public void testFieldFormatCommand () throws IOException {
218+ JSONObject result ;
219+ try {
220+ executeQuery (
221+ String .format (
222+ "search source=%s | fieldformat double_balance = balance * 2 " , TEST_INDEX_BANK ));
223+ } catch (ResponseException e ) {
224+ result = new JSONObject (TestUtils .getResponseBody (e .getResponse ()));
225+ verifyQuery (result );
227226 }
227+ }
228228
229-
230- private void verifyQuery (JSONObject result ) throws IOException {
229+ private void verifyQuery (JSONObject result ) throws IOException {
231230 if (isCalciteEnabled ()) {
232231 assertFalse (result .getJSONArray ("datarows" ).isEmpty ());
233232 } else {
You can’t perform that action at this time.
0 commit comments