diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/io/stream/PlanNamedTypesTests.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/io/stream/PlanNamedTypesTests.java index 81df7ffca17d1..a5cb0044d91d0 100644 --- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/io/stream/PlanNamedTypesTests.java +++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/io/stream/PlanNamedTypesTests.java @@ -169,7 +169,7 @@ public void testUnsupportedAttributeSimple() throws IOException { "foo", new UnsupportedEsField("foo", "keyword"), "field not supported", - new NameId(53) + new NameId() ); BytesStreamOutput bso = new BytesStreamOutput(); PlanStreamOutput out = new PlanStreamOutput(bso, planNameRegistry); @@ -193,7 +193,7 @@ public void testFieldAttributeSimple() throws IOException { randomEsField(), null, // qualifier, can be null Nullability.TRUE, - new NameId(53), + new NameId(), true // synthetic ); BytesStreamOutput bso = new BytesStreamOutput(); diff --git a/x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/NameId.java b/x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/NameId.java index e099621756e37..20e8214ddef34 100644 --- a/x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/NameId.java +++ b/x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/expression/NameId.java @@ -26,10 +26,6 @@ public NameId() { this.id = COUNTER.incrementAndGet(); } - public NameId(long id) { - this.id = id; - } - @Override public int hashCode() { return Objects.hash(id);