Skip to content

Commit 255d5a9

Browse files
committed
fix checkstyle
1 parent 85c3d83 commit 255d5a9

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/math

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ public boolean foldable() {
142142
@Override
143143
public EvalOperator.ExpressionEvaluator.Factory toEvaluator(ToEvaluator toEvaluator) {
144144
var dataType = dataType();
145-
if (!FACTORY_PROVIDERS.containsKey(dataType)) {
145+
if (FACTORY_PROVIDERS.containsKey(dataType) == false) {
146146
throw new EsqlIllegalArgumentException("Unsupported data type [{}] for function [{}]", dataType(), NAME);
147147
}
148148
var sign = children().get(1);
149149
var signFactory = toEvaluator.apply(sign);
150150
var magnitude = children().get(0);
151151
if (sign.dataType() != dataType) {
152152
// If the sign is not the same type as the magnitude, we need to convert it.
153-
signFactory = Cast.cast(sign.source(), sign.dataType(), dataType, signFactory);
153+
signFactory = Cast.cast(source(), sign.dataType(), dataType, signFactory);
154154
}
155155
return FACTORY_PROVIDERS.get(dataType).create(source(), toEvaluator.apply(magnitude), signFactory);
156156
}

0 commit comments

Comments
 (0)