Skip to content

Commit 91d65cc

Browse files
committed
Trimmed trailing whitespace
Signed-off-by: Mitchell Gale <[email protected]>
1 parent cffa45a commit 91d65cc

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

core/src/main/java/org/opensearch/sql/executor/streaming/MicroBatchStreamingExecution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import org.opensearch.sql.planner.logical.LogicalPlan;
2222

2323
/**
24-
* Micro batch streaming execution.
24+
* Micro batch streaming execution.
2525
*/
2626
public class MicroBatchStreamingExecution {
2727

core/src/main/java/org/opensearch/sql/expression/DSL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public static FunctionExpression str_to_date(FunctionProperties functionProperti
534534
Expression... expressions) {
535535
return compile(functionProperties, BuiltinFunctionName.STR_TO_DATE, expressions);
536536
}
537-
537+
538538
public static FunctionExpression sec_to_time(Expression... expressions) {
539539
return compile(FunctionProperties.None, BuiltinFunctionName.SEC_TO_TIME, expressions);
540540
}

core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ private ExprValue exprDateApplyInterval(FunctionProperties functionProperties,
11651165
var dt = extractDateTime(datetime, functionProperties);
11661166
return new ExprDatetimeValue(isAdd ? dt.plus(interval) : dt.minus(interval));
11671167
}
1168-
1168+
11691169
/**
11701170
* Formats date according to format specifier. First argument is time, second is format.
11711171
* Detailed supported signatures:

core/src/main/java/org/opensearch/sql/planner/physical/PhysicalPlanNodeVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public R visitValues(ValuesOperator node, C context) {
7272
public R visitSort(SortOperator node, C context) {
7373
return visitNode(node, context);
7474
}
75-
75+
7676
public R visitRareTopN(RareTopNOperator node, C context) {
7777
return visitNode(node, context);
7878
}

core/src/test/java/org/opensearch/sql/executor/streaming/MicroBatchStreamingExecutionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Helper latestOffsetLogShouldBe(Long offsetId) {
230230
* StreamingSource impl only for testing.
231231
*
232232
* <p>initially, offset is -1, getLatestOffset() will return Optional.emtpy().
233-
*
233+
*
234234
* <p>call addData() add offset by one.
235235
*/
236236
static class TestStreamingSource implements StreamingSource {

core/src/test/java/org/opensearch/sql/expression/datetime/DateTimeFunctionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ public void invalidDayOfYearArgument() {
559559
() -> invalidDayOfYearQuery("asdfasdfasdf"))
560560
);
561561
}
562-
562+
563563
@Test
564564
public void from_days() {
565565
FunctionExpression expression = DSL.from_days(DSL.literal(new ExprLongValue(730669)));
@@ -1712,7 +1712,7 @@ private static Stream<Arguments> getInvalidTestDataForTimeFormat() {
17121712
DSL.literal("%h"))
17131713
);
17141714
}
1715-
1715+
17161716
@ParameterizedTest(name = "{0}{1}")
17171717
@MethodSource("getInvalidTestDataForTimeFormat")
17181718
public void testInvalidTimeFormat(LiteralExpression arg, LiteralExpression format) {

core/src/test/java/org/opensearch/sql/expression/operator/arthmetic/MathematicalFunctionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ public void signum_double_value(Double value) {
14851485
signum.valueOf(valueEnv()),
14861486
allOf(hasType(INTEGER), hasValue((int) Math.signum(value))));
14871487
assertEquals(String.format("signum(%s)", value), signum.toString());
1488-
}
1488+
}
14891489

14901490
/**
14911491
* Test sinh with byte value.

integ-test/src/test/java/org/opensearch/sql/ppl/ConvertTZFunctionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import org.json.JSONObject;
99
import org.junit.Test;
10-
10+
1111
import java.io.IOException;
1212

1313
import static org.opensearch.sql.legacy.TestsConstants.TEST_INDEX_DATE;

integ-test/src/test/java/org/opensearch/sql/sql/MathematicalFunctionIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void testPI() throws IOException {
3939
schema("PI()", null, "double"));
4040
verifyDataRows(result, rows(3.141592653589793));
4141
}
42-
42+
4343
@Test
4444
public void testCeil() throws IOException {
4545
JSONObject result = executeQuery("select ceil(0)");

legacy/src/test/java/org/opensearch/sql/legacy/unittest/executor/DeleteResultSetTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class DeleteResultSetTest {
3131

3232
@Mock
3333
Delete deleteQuery;
34-
34+
3535
@Test
3636
public void testDeleteResponseForJdbcFormat() throws IOException {
3737

legacy/src/test/java/org/opensearch/sql/legacy/util/MatcherUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@ public static TypeSafeMatcher<JSONObject> columnPattern(String regex) {
227227
protected boolean matchesSafely(JSONObject jsonObject) {
228228
return ((String)jsonObject.query("/name")).matches(regex);
229229
}
230-
230+
231231
@Override
232232
public void describeTo(Description description) {
233233
description.appendText(String.format("(column_pattern=%s)", regex));
234234
}
235235
};
236236
}
237-
237+
238238
public static TypeSafeMatcher<JSONObject> columnName(String name) {
239239
return new TypeSafeMatcher<JSONObject>() {
240240
@Override

sql/src/test/java/org/opensearch/sql/sql/antlr/SQLSyntaxParserTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ public void can_parse_sec_to_time_function() {
595595
assertNotNull(parser.parse("SELECT sec_to_time(6897)"));
596596
assertNotNull(parser.parse("SELECT sec_to_time(6897.123)"));
597597
}
598-
598+
599599
@Test
600600
public void can_parse_last_day_function() {
601601
assertNotNull(parser.parse("SELECT last_day(\"2017-06-20\")"));
@@ -607,7 +607,7 @@ public void can_parse_timestampadd_function() {
607607
assertNotNull(parser.parse("SELECT TIMESTAMPADD(MINUTE, 1, '2003-01-02')"));
608608
assertNotNull(parser.parse("SELECT TIMESTAMPADD(WEEK,1,'2003-01-02')"));
609609
}
610-
610+
611611
@Test
612612
public void can_parse_timestampdiff_function() {
613613
assertNotNull(parser.parse("SELECT TIMESTAMPDIFF(MINUTE, '2003-01-02', '2003-01-02')"));

0 commit comments

Comments
 (0)