presto-parser/src/main/java/io/prestosql/sql/tree/Select.java/Select/equals
class Select:    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        Select select = (Select) o;
        return (distinct == select.distinct) &&
                Objects.equals(selectItems, select.selectItems);
    }