@Override
    public Attribute withName(String newName) {
        if (StringUtils.equals(newName, name)) {
            return this;
        } else {
            return new AttributeReference(newName, dataType, metadata, exprId);
        }
    }
Returns true iff the expression id is the same for both attributes.
indexr-query-opt/src/main/java/io/indexr/query/expr/attr/AttributeReference.java