Skip to content

Commit fde79b3

Browse files
Add comment why Operator.EQ was not added
1 parent cb6f3be commit fde79b3

File tree

1 file changed

+3
-0
lines changed
  • x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config

1 file changed

+3
-0
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config/Operator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ public boolean test(double lhs, double rhs) {
4343
return Double.compare(lhs, rhs) <= 0;
4444
}
4545
};
46+
// EQ was considered but given the oddity of such a
47+
// condition and the fact that it would be a numerically
48+
// unstable condition, it was rejected.
4649

4750
public static final ParseField OPERATOR_FIELD = new ParseField("operator");
4851

0 commit comments

Comments
 (0)