Skip to content

Commit e9ee7b8

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent acc9837 commit e9ee7b8

File tree

1 file changed

+4
-15
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date

1 file changed

+4
-15
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DateParse.java

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,15 @@
2222
import org.elasticsearch.xpack.esql.core.type.DataType;
2323
import org.elasticsearch.xpack.esql.expression.function.Example;
2424
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
25-
import org.elasticsearch.xpack.esql.expression.function.OptionalArgument;
2625
import org.elasticsearch.xpack.esql.expression.function.Param;
2726
import org.elasticsearch.xpack.esql.expression.function.ThreeOptionalArguments;
28-
import org.elasticsearch.xpack.esql.expression.function.TwoOptionalArguments;
2927
import org.elasticsearch.xpack.esql.expression.function.scalar.EsqlScalarFunction;
3028
import org.elasticsearch.xpack.esql.io.stream.PlanStreamInput;
3129

3230
import java.io.IOException;
3331
import java.util.ArrayList;
34-
import java.util.Arrays;
3532
import java.util.List;
3633
import java.util.Locale;
37-
import java.util.Objects;
3834
import java.util.TimeZone;
3935

4036
import static org.elasticsearch.common.time.DateFormatter.forPattern;
@@ -73,16 +69,8 @@ public DateParse(
7369
type = { "keyword", "text" },
7470
description = "Date expression as a string. If `null` or an empty string, the function returns `null`."
7571
) Expression second,
76-
@Param(
77-
name="dateLocale",
78-
type = { "keyword", "text" },
79-
description = "The locale to parse with"
80-
) Expression third,
81-
@Param(
82-
name="dateTimezone",
83-
type = { "keyword", "text" },
84-
description = "The timezone to parse with"
85-
) Expression forth
72+
@Param(name = "dateLocale", type = { "keyword", "text" }, description = "The locale to parse with") Expression third,
73+
@Param(name = "dateTimezone", type = { "keyword", "text" }, description = "The timezone to parse with") Expression forth
8674
) {
8775
super(source, fields(first, second, third, forth));
8876
this.field = second != null ? second : first;
@@ -218,7 +206,8 @@ public Expression replaceChildren(List<Expression> newChildren) {
218206
newChildren.get(0),
219207
newChildren.size() > 1 ? newChildren.get(1) : null,
220208
newChildren.size() > 2 ? newChildren.get(2) : null,
221-
newChildren.size() > 3 ? newChildren.get(3) : null);
209+
newChildren.size() > 3 ? newChildren.get(3) : null
210+
);
222211
}
223212

224213
@Override

0 commit comments

Comments
 (0)