Skip to content

Commit 3e84a74

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 6448db9 commit 3e84a74

File tree

1 file changed

+3
-8
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext

1 file changed

+3
-8
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/fulltext/Decay.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,9 @@ protected TypeResolution resolveType() {
166166
return new TypeResolution("Unresolved children");
167167
}
168168

169-
TypeResolution valueResolution = isNotNull(value, sourceText(), FIRST)
170-
.and(isType(
171-
value,
172-
dt -> dt.isNumeric() || dt.isDate() || isSpatialPoint(dt),
173-
sourceText(),
174-
FIRST,
175-
NUMERIC_DATE_OR_SPATIAL_POINT
176-
));
169+
TypeResolution valueResolution = isNotNull(value, sourceText(), FIRST).and(
170+
isType(value, dt -> dt.isNumeric() || dt.isDate() || isSpatialPoint(dt), sourceText(), FIRST, NUMERIC_DATE_OR_SPATIAL_POINT)
171+
);
177172
if (valueResolution.unresolved()) {
178173
return valueResolution;
179174
}

0 commit comments

Comments
 (0)