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
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'
This is because a mutation step precedes the projection+filtering:
Translated to datafusion level:
raises
We could use LogicalPlanBuilder::project_with_alias() so ibis can assign and track unique qualifiers for ambiguous field names coming from subselects. Though this must be wired through all the way to PyDataFrame::select()
cc @houqp
Originally posted by @kszucs in #2918 (comment)
The text was updated successfully, but these errors were encountered: