@@ -246,78 +246,4 @@ public void testCrossClusterQueryStringWithoutFields() throws IOException {
246246 TEST_INDEX_BANK_REMOTE ));
247247 verifyDataRows (result , rows ("Hattie" ));
248248 }
249-
250- @ Test
251- public void testCrossClusterAddTotals () throws IOException {
252- // Test query_string without fields parameter on remote cluster
253- JSONObject result =
254- executeQuery (
255- String .format (
256- "search source=%s| sort 1 age | fields firstname, age | addtotals age" ,
257- TEST_INDEX_BANK_REMOTE ));
258- verifyDataRows (result , rows ("Nanette" , 28 , 28 ));
259- }
260-
261- /** CrossClusterSearchIT Test for addcoltotals. */
262- @ Test
263- public void testCrossClusterAddColTotals () throws IOException {
264- // Test query_string without fields parameter on remote cluster
265- JSONObject result =
266- executeQuery (
267- String .format (
268- "search source=%s | where firstname='Hattie' or firstname ='Nanette'|fields"
269- + " firstname,age,balance | addcoltotals age balance" ,
270- TEST_INDEX_BANK_REMOTE ));
271- verifyDataRows (
272- result , rows ("Hattie" , 36 , 5686 ), rows ("Nanette" , 28 , 32838 ), rows (null , 64 , 38524 ));
273- }
274-
275- @ Test
276- public void testCrossClusterTranspose () throws IOException {
277- // Test query_string without fields parameter on remote cluster
278- JSONObject result =
279- executeQuery (
280- String .format (
281- "search source=%s | where firstname='Hattie' or firstname ='Nanette' or"
282- + " firstname='Dale'|sort firstname desc |fields firstname,age,balance |"
283- + " transpose 3 column_name='column_names'" ,
284- TEST_INDEX_BANK_REMOTE ));
285-
286- verifyDataRows (
287- result ,
288- rows ("firstname" , "Nanette" , "Hattie" , "Dale" ),
289- rows ("balance" , "32838" , "5686" , "4180" ),
290- rows ("age" , "28" , "36" , "33" ));
291- }
292-
293- @ Test
294- public void testCrossClusterAppend () throws IOException {
295- // TODO: We should enable calcite by default in CrossClusterSearchIT?
296- JSONObject result =
297- executeQuery (
298- String .format (
299- "search source=%s | stats count() as cnt by gender | append [ search source=%s |"
300- + " stats count() as cnt ]" ,
301- TEST_INDEX_BANK_REMOTE , TEST_INDEX_BANK_REMOTE ));
302- verifyDataRows (result , rows (3 , "F" ), rows (4 , "M" ), rows (7 , null ));
303- }
304-
305- /** CrossClusterSearchIT Test for mvcombine. */
306- @ Test
307- public void testCrossClusterMvcombine () throws IOException {
308-
309- JSONObject result =
310- executeQuery (
311- String .format (
312- "search source=%s | where firstname='Hattie' or firstname='Nanette' "
313- + "| fields firstname, age | mvcombine age" ,
314- TEST_INDEX_BANK_REMOTE ));
315-
316- verifyColumn (result , columnName ("firstname" ), columnName ("age" ));
317-
318- verifyDataRows (
319- result ,
320- rows ("Hattie" , new org .json .JSONArray ().put (36 )),
321- rows ("Nanette" , new org .json .JSONArray ().put (28 )));
322- }
323249}
0 commit comments