@@ -393,8 +393,8 @@ public void testReplaceStatsFilteredAggWithEvalSingleAggWithGroup() {
393393 */
394394 public void testReplaceInlinestatsFilteredAggWithEvalSingleAgg () {
395395 var query = """
396- from test
397- | inlinestats sum(salary) where false
396+ FROM test
397+ | INLINESTATS sum(salary) where false
398398 """ ;
399399 if (releaseBuildForInlinestats (query )) {
400400 return ;
@@ -436,8 +436,8 @@ public void testReplaceInlinestatsFilteredAggWithEvalSingleAgg() {
436436 */
437437 public void testReplaceInlinestatsFilteredAggWithEvalSingleAggWithExpression () {
438438 var query = """
439- from test
440- | inlinestats sum(salary) + 1 where false
439+ FROM test
440+ | INLINESTATS sum(salary) + 1 where false
441441 """ ;
442442 if (releaseBuildForInlinestats (query )) {
443443 return ;
@@ -483,11 +483,11 @@ public void testReplaceInlinestatsFilteredAggWithEvalSingleAggWithExpression() {
483483 */
484484 public void testReplaceInlinestatsFilteredAggWithEvalMixedFilterAndNoFilter () {
485485 var query = """
486- from test
487- | keep salary, emp_no
488- | inlinestats sum(salary) + 1 where false,
486+ FROM test
487+ | KEEP salary, emp_no
488+ | INLINESTATS sum(salary) + 1 where false,
489489 sum(salary) + 2
490- by emp_no
490+ BY emp_no
491491 """ ;
492492 if (releaseBuildForInlinestats (query )) {
493493 return ;
@@ -539,9 +539,9 @@ public void testReplaceInlinestatsFilteredAggWithEvalMixedFilterAndNoFilter() {
539539 */
540540 public void testReplaceInlinestatsFilteredAggWithEvalFilterFalseAndNull () {
541541 var query = """
542- from test
543- | keep salary
544- | inlinestats sum(salary) + 1 where false,
542+ FROM test
543+ | KEEP salary
544+ | INLINESTATS sum(salary) + 1 where false,
545545 sum(salary) + 3,
546546 sum(salary) + 2 where null,
547547 sum(salary) + 4 where not true
@@ -593,9 +593,9 @@ public void testReplaceInlinestatsFilteredAggWithEvalFilterFalseAndNull() {
593593 */
594594 public void testReplaceInlinestatsFilteredAggWithEvalNotTrue () {
595595 var query = """
596- from test
597- | keep emp_no, salary
598- | inlinestats count(salary) where not true
596+ FROM test
597+ | KEEP emp_no, salary
598+ | INLINESTATS count(salary) where not true
599599 """ ;
600600 if (releaseBuildForInlinestats (query )) {
601601 return ;
@@ -626,9 +626,9 @@ public void testReplaceInlinestatsFilteredAggWithEvalNotTrue() {
626626 */
627627 public void testReplaceInlinestatsFilteredAggWithEvalNotFalse () {
628628 var query = """
629- from test
630- | keep emp_no, salary, gender
631- | inlinestats m1 = count(salary) where not false
629+ FROM test
630+ | KEEP emp_no, salary, gender
631+ | INLINESTATS m1 = count(salary) WHERE not false
632632 """ ;
633633 if (releaseBuildForInlinestats (query )) {
634634 return ;
@@ -660,9 +660,9 @@ public void testReplaceInlinestatsFilteredAggWithEvalNotFalse() {
660660 */
661661 public void testReplaceInlinestatsFilteredAggWithEvalCount () {
662662 var query = """
663- from test
664- | keep salary
665- | inlinestats count(salary) where false
663+ FROM test
664+ | KEEP salary
665+ | INLINESTATS count(salary) where false
666666 """ ;
667667 if (releaseBuildForInlinestats (query )) {
668668 return ;
@@ -690,9 +690,9 @@ public void testReplaceInlinestatsFilteredAggWithEvalCount() {
690690 */
691691 public void testReplaceInlinestatsFilteredAggWithEvalCountDistinctInExpression () {
692692 var query = """
693- from test
694- | keep salary
695- | inlinestats count_distinct(salary + 2) + 3 where false
693+ FROM test
694+ | KEEP salary
695+ | INLINESTATS count_distinct(salary + 2) + 3 where false
696696 """ ;
697697 if (releaseBuildForInlinestats (query )) {
698698 return ;
@@ -725,12 +725,12 @@ public void testReplaceInlinestatsFilteredAggWithEvalCountDistinctInExpression()
725725 */
726726 public void testReplaceInlinestatsFilteredAggWithEvalSameAggWithAndWithoutFilter () {
727727 var query = """
728- from test
729- | keep emp_no, salary
730- | inlinestats max = max(salary), max_a = max(salary) where null,
728+ FROM test
729+ | KEEP emp_no, salary
730+ | INLINESTATS max = max(salary), max_a = max(salary) WHERE null,
731731 min = min(salary),
732- min_a = min(salary) where to_string(null) == "abc"
733- by emp_no
732+ min_a = min(salary) WHERE to_string(null) == "abc"
733+ BY emp_no
734734 """ ;
735735 if (releaseBuildForInlinestats (query )) {
736736 return ;
@@ -777,12 +777,12 @@ public void testReplaceInlinestatsFilteredAggWithEvalSameAggWithAndWithoutFilter
777777 */
778778 public void testReplaceTwoConsecutiveInlinestats_WithFalseFilters () {
779779 var query = """
780- from test
781- | keep emp_no
782- | sort emp_no
783- | limit 3
784- | inlinestats count = count(*) where false
785- | inlinestats cc = count_distinct(emp_no) where false
780+ FROM test
781+ | KEEP emp_no
782+ | SORT emp_no
783+ | LIMIT 3
784+ | INLINESTATS count = count(*) WHERE false
785+ | INLINESTATS cc = count_distinct(emp_no) WHERE false
786786 """ ;
787787 if (releaseBuildForInlinestats (query )) {
788788 return ;
0 commit comments