@Override
    public int hashCode() {

        int result = super.hashCode();
        result = 31 * result + (onUpdateExpression != null ? onUpdateExpression.hashCode() : 0);
        result = 31 * result + (updateSetter != null ? updateSetter.hashCode() : 0);
        return result;
    }
Query output stream try to update table else insert into it
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/output/stream/UpdateOrInsertStream.java