You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/math/CopySign.java
+19-14Lines changed: 19 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -146,18 +146,23 @@ public EvalOperator.ExpressionEvaluator.Factory toEvaluator(ToEvaluator toEvalua
146
146
thrownewEsqlIllegalArgumentException("Unsupported data type [{}] for function [{}]", dataType(), NAME);
147
147
}
148
148
varsign = children().get(1);
149
-
varsignFactory = toEvaluator.apply(sign);
150
149
varmagnitude = children().get(0);
151
-
if (sign.dataType() != dataType) {
152
-
// If the sign is not the same type as the magnitude, we need to convert it.
0 commit comments