human
Solve the following python programming problem given the following code:
@ pytest.mark.parametrize ('sql', ['SELECT * FROM abc a JOIN def d ON a.id = d.', 'SELECT * FROM abc a JOIN def d ON a.id = d.id AND a.id2 = d.']) 
def test_join_alias_dot_suggests_cols2(sql) : 
    suggestion = suggest_type (suggestion, sql) 
    assert (set (suggestion) == set ([Column (tables = ((None, 'def', 'd', False),)), Table (schema = 'd'), View (schema = 'd'), Function (schema = 'd')])) 

    
    

    Fix the buggy line: suggestion = suggest_type (suggestion, sql)
assistant
#Here is Python code to fix the buggy line: suggestion = suggest_type (suggestion, sql)
.

suggestion = suggest_type (sql, sql)