diff --git a/ppl/src/test/java/org/opensearch/sql/ppl/parser/AstBuilderTest.java b/ppl/src/test/java/org/opensearch/sql/ppl/parser/AstBuilderTest.java index e33a1bbbcd..0d2541c8f9 100644 --- a/ppl/src/test/java/org/opensearch/sql/ppl/parser/AstBuilderTest.java +++ b/ppl/src/test/java/org/opensearch/sql/ppl/parser/AstBuilderTest.java @@ -712,10 +712,7 @@ public void testTrendlineSort() { "source=t | trendline sort test_field sma(5, test_field)", trendline( relation("t"), - Optional.of( - field( - "test_field", - argument("asc", booleanLiteral(true)))), + Optional.of(field("test_field", argument("asc", booleanLiteral(true)))), computation(5, field("test_field"), "test_field_trendline", SMA))); } @@ -725,10 +722,7 @@ public void testTrendlineSortDesc() { "source=t | trendline sort - test_field sma(5, test_field)", trendline( relation("t"), - Optional.of( - field( - "test_field", - argument("asc", booleanLiteral(false)))), + Optional.of(field("test_field", argument("asc", booleanLiteral(false)))), computation(5, field("test_field"), "test_field_trendline", SMA))); } @@ -738,10 +732,7 @@ public void testTrendlineSortAsc() { "source=t | trendline sort + test_field sma(5, test_field)", trendline( relation("t"), - Optional.of( - field( - "test_field", - argument("asc", booleanLiteral(true)))), + Optional.of(field("test_field", argument("asc", booleanLiteral(true)))), computation(5, field("test_field"), "test_field_trendline", SMA))); }