Skip to content

Commit c7dfe13

Browse files
committed
equals and hashcode
1 parent 5250dce commit c7dfe13

File tree

1 file changed

+3
-2
lines changed
  • x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type

1 file changed

+3
-2
lines changed

x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/EsField.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,13 @@ public boolean equals(Object o) {
300300
&& isAlias == field.isAlias
301301
&& esDataType == field.esDataType
302302
&& Objects.equals(name, field.name)
303-
&& Objects.equals(properties, field.properties);
303+
&& Objects.equals(properties, field.properties)
304+
&& Objects.equals(timeSeriesFieldType, field.timeSeriesFieldType);
304305
}
305306

306307
@Override
307308
public int hashCode() {
308-
return Objects.hash(esDataType, aggregatable, properties, name, isAlias);
309+
return Objects.hash(esDataType, aggregatable, properties, name, isAlias, timeSeriesFieldType);
309310
}
310311

311312
public static final class Exact {

0 commit comments

Comments
 (0)