You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.filter(df.column("bool_col")) should ignore the projection alias and only use the actual bool_col table column to evaluate the predicate. This is be behavior I see in postgres. For example SELECT id+1 as id2 FROM test where id2 > 2 results in error: column "id2" does not exist.
To reproduce:
importdatafusionasdf# bool_col is an integer here, convert it to be actually booleanbool_col= (df.column("bool_col") ==df.literal(1)).alias("bool_col")
result=table.select(bool_col).filter(df.column("bool_col"))
result.collect()
raises
Exception: Error during planning: Ambiguous reference to field named 'bool_col'
Quoted from @houqp:
To reproduce:
raises
Originally posted by @kszucs in ibis-project/ibis#2918 (comment)
The text was updated successfully, but these errors were encountered: