diff --git a/docs/changelog/108834.yaml b/docs/changelog/108834.yaml new file mode 100644 index 0000000000000..044056fa9a9da --- /dev/null +++ b/docs/changelog/108834.yaml @@ -0,0 +1,6 @@ +pr: 108834 +summary: "[ESQL] Mark `date_diff` as requiring all three arguments" +area: ES|QL +type: bug +issues: + - 108383 diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DateDiff.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DateDiff.java index 8378d622b3276..8c55c99494385 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DateDiff.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DateDiff.java @@ -16,7 +16,6 @@ import org.elasticsearch.xpack.esql.expression.function.scalar.EsqlScalarFunction; import org.elasticsearch.xpack.ql.InvalidArgumentException; import org.elasticsearch.xpack.ql.expression.Expression; -import org.elasticsearch.xpack.ql.expression.function.OptionalArgument; import org.elasticsearch.xpack.ql.tree.NodeInfo; import org.elasticsearch.xpack.ql.tree.Source; import org.elasticsearch.xpack.ql.type.DataType; @@ -47,7 +46,7 @@ * in multiples of the unit specified in the first argument. * If the second argument (start) is greater than the third argument (end), then negative values are returned. */ -public class DateDiff extends EsqlScalarFunction implements OptionalArgument { +public class DateDiff extends EsqlScalarFunction { public static final ZoneId UTC = ZoneId.of("Z");