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
importibist=ibis.examples.penguins.fetch()
t.filter(
t.species=="Adelie",
t.species=="Adelie",
)
# IbisInputError: Duplicate column name "Equals(species, 'Adelie')" in result set
Since neither of these columns are actually in the result set, I would expect this to work.
OK, I admit this is a bit of a contrived example, but there are instances where different expressions have the same name, which is how I actually ran into this bug:
t.filter(
t.island.fill_null("") =="Adelie",
t.species.fill_null("") =="Adelie",
)
# IbisInputError: Duplicate column name "Equals(Coalesce(), 'Adelie')" in result set
perhaps that is just a bug with coalesce though? We should make them have different names?
I think the "pure" solution would be to do some renaming of these temporary columns on the fly inside .filter(), but that might be really hairy, so an easier mitigation would be just to stamp out instances where different expressions map to the same name.
What version of ibis are you using?
main
What backend(s) are you using, if any?
No response
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
I think the "pure" solution would be to do some renaming of these temporary columns on the fly inside .filter()
I don't think so. I think we might want to instead relax whatever constraint is enforcing this, but only inside filter. Best to look into what's happening before we speculate on solutions though :)
What happened?
Since neither of these columns are actually in the result set, I would expect this to work.
OK, I admit this is a bit of a contrived example, but there are instances where different expressions have the same name, which is how I actually ran into this bug:
perhaps that is just a bug with coalesce though? We should make them have different names?
I think the "pure" solution would be to do some renaming of these temporary columns on the fly inside .filter(), but that might be really hairy, so an easier mitigation would be just to stamp out instances where different expressions map to the same name.
What version of ibis are you using?
main
What backend(s) are you using, if any?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: