@@ -458,7 +458,7 @@ public void testAvgByTimeSpanAndFields() throws IOException {
458458 JSONObject actual =
459459 executeQuery (
460460 String .format (
461- "source=%s | stats avg(balance) by span(birthdate, 1 month ) as age_balance" ,
461+ "source=%s | stats avg(balance) by span(birthdate, 1month ) as age_balance" ,
462462 TEST_INDEX_BANK ));
463463 verifySchema (actual , schema ("age_balance" , "timestamp" ), schema ("avg(balance)" , "double" ));
464464 verifyDataRows (
@@ -475,7 +475,7 @@ public void testCountByCustomTimeSpanWithDifferentUnits() throws IOException {
475475 JSONObject actual =
476476 executeQuery (
477477 String .format (
478- "source=%s | head 5 | stats count(datetime0) by span(datetime0, 15 minute ) as"
478+ "source=%s | head 5 | stats count(datetime0) by span(datetime0, 15minute ) as"
479479 + " datetime_span" ,
480480 TEST_INDEX_CALCS ));
481481 verifySchema (
@@ -491,7 +491,7 @@ public void testCountByCustomTimeSpanWithDifferentUnits() throws IOException {
491491 actual =
492492 executeQuery (
493493 String .format (
494- "source=%s | head 5 | stats count(datetime0) by span(datetime0, 5 second ) as"
494+ "source=%s | head 5 | stats count(datetime0) by span(datetime0, 5second ) as"
495495 + " datetime_span" ,
496496 TEST_INDEX_CALCS ));
497497 verifySchema (
@@ -507,7 +507,7 @@ public void testCountByCustomTimeSpanWithDifferentUnits() throws IOException {
507507 actual =
508508 executeQuery (
509509 String .format (
510- "source=%s | head 5 | stats count(datetime0) by span(datetime0, 3 month ) as"
510+ "source=%s | head 5 | stats count(datetime0) by span(datetime0, 3month ) as"
511511 + " datetime_span" ,
512512 TEST_INDEX_CALCS ));
513513 verifySchema (
@@ -521,7 +521,7 @@ public void testCountByNullableTimeSpan() throws IOException {
521521 executeQuery (
522522 String .format (
523523 "source=%s | head 5 | stats count(datetime0), count(datetime1) by span(time1,"
524- + " 15 minute ) as time_span" ,
524+ + " 15minute ) as time_span" ,
525525 TEST_INDEX_CALCS ));
526526 verifySchema (
527527 actual ,
@@ -541,24 +541,23 @@ public void testCountByDateTypeSpanWithDifferentUnits() throws IOException {
541541 JSONObject actual =
542542 executeQuery (
543543 String .format (
544- "source=%s | stats count(strict_date) by span(strict_date, 1 day) as"
545- + " date_span" ,
544+ "source=%s | stats count(strict_date) by span(strict_date, 1day) as" + " date_span" ,
546545 TEST_INDEX_DATE_FORMATS ));
547546 verifySchema (actual , schema ("date_span" , "date" ), schema ("count(strict_date)" , "bigint" ));
548547 verifyDataRows (actual , rows (2 , "1984-04-12" ));
549548
550549 actual =
551550 executeQuery (
552551 String .format (
553- "source=%s | stats count(basic_date) by span(basic_date, 1 year ) as" + " date_span" ,
552+ "source=%s | stats count(basic_date) by span(basic_date, 1year ) as" + " date_span" ,
554553 TEST_INDEX_DATE_FORMATS ));
555554 verifySchema (actual , schema ("date_span" , "date" ), schema ("count(basic_date)" , "bigint" ));
556555 verifyDataRows (actual , rows (2 , "1984-01-01" ));
557556
558557 actual =
559558 executeQuery (
560559 String .format (
561- "source=%s | stats count(year_month_day) by span(year_month_day, 1 month )"
560+ "source=%s | stats count(year_month_day) by span(year_month_day, 1month )"
562561 + " as date_span" ,
563562 TEST_INDEX_DATE_FORMATS ));
564563 verifySchema (actual , schema ("date_span" , "date" ), schema ("count(year_month_day)" , "bigint" ));
@@ -571,7 +570,7 @@ public void testCountByTimeTypeSpanWithDifferentUnits() throws IOException {
571570 executeQuery (
572571 String .format (
573572 "source=%s | stats count(hour_minute_second) by span(hour_minute_second, 1"
574- + " minute) as time_span" ,
573+ + "minute) as time_span" ,
575574 TEST_INDEX_DATE_FORMATS ));
576575 verifySchema (
577576 actual , schema ("time_span" , "time" ), schema ("count(hour_minute_second)" , "bigint" ));
@@ -580,7 +579,7 @@ public void testCountByTimeTypeSpanWithDifferentUnits() throws IOException {
580579 actual =
581580 executeQuery (
582581 String .format (
583- "source=%s | stats count(custom_time) by span(custom_time, 1 second ) as"
582+ "source=%s | stats count(custom_time) by span(custom_time, 1second ) as"
584583 + " time_span" ,
585584 TEST_INDEX_DATE_FORMATS ));
586585 verifySchema (actual , schema ("time_span" , "time" ), schema ("count(custom_time)" , "bigint" ));
@@ -589,7 +588,7 @@ public void testCountByTimeTypeSpanWithDifferentUnits() throws IOException {
589588 actual =
590589 executeQuery (
591590 String .format (
592- "source=%s | stats count(hour) by span(hour, 6 hour ) as time_span" ,
591+ "source=%s | stats count(hour) by span(hour, 6hour ) as time_span" ,
593592 TEST_INDEX_DATE_FORMATS ));
594593 verifySchema (actual , schema ("time_span" , "time" ), schema ("count(hour)" , "bigint" ));
595594 verifyDataRows (actual , rows (2 , "06:00:00" ));
@@ -689,7 +688,7 @@ public void testCountBySpanForCustomFormats() throws IOException {
689688 executeQuery (
690689 String .format (
691690 "source=%s | stats count(custom_date_or_date) by span(custom_date_or_date, 1"
692- + " month) as date_span" ,
691+ + "month) as date_span" ,
693692 TEST_INDEX_DATE_FORMATS ));
694693 verifySchema (
695694 actual , schema ("date_span" , "date" ), schema ("count(custom_date_or_date)" , "bigint" ));
@@ -699,7 +698,7 @@ public void testCountBySpanForCustomFormats() throws IOException {
699698 executeQuery (
700699 String .format (
701700 "source=%s | stats count(custom_date_or_custom_time) by"
702- + " span(custom_date_or_custom_time, 1 hour ) as timestamp_span" ,
701+ + " span(custom_date_or_custom_time, 1hour ) as timestamp_span" ,
703702 TEST_INDEX_DATE_FORMATS ));
704703 verifySchema (
705704 actual ,
@@ -711,7 +710,7 @@ public void testCountBySpanForCustomFormats() throws IOException {
711710 executeQuery (
712711 String .format (
713712 "source=%s | stats count(custom_no_delimiter_ts) by span(custom_no_delimiter_ts, 1"
714- + " hour) as timestamp_span" ,
713+ + "hour) as timestamp_span" ,
715714 TEST_INDEX_DATE_FORMATS ));
716715 verifySchema (
717716 actual ,
@@ -723,7 +722,7 @@ public void testCountBySpanForCustomFormats() throws IOException {
723722 executeQuery (
724723 String .format (
725724 "source=%s | stats count(incomplete_custom_time) by span(incomplete_custom_time, 12"
726- + " hour) as time_span" ,
725+ + "hour) as time_span" ,
727726 TEST_INDEX_DATE_FORMATS ));
728727 verifySchema (
729728 actual , schema ("time_span" , "time" ), schema ("count(incomplete_custom_time)" , "bigint" ));
0 commit comments