We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At the moment Impala backend only supports .distinct() on a full table.
This works:
table.distinct()
This does not:
table.distinct(on=['col1', 'col2'])
Translation to backend failed Error message: OperationNotDefinedError("Compilation rule for 'First' operation is not defined")
This forces me to write verbose workarounds.
.distinct() on a subset of a table is pretty fundamental, in my view.
The on clause in .distinct() should work.
10.5
Impala
The text was updated successfully, but these errors were encountered:
workaround in the meantime should be something like
def distinct(t, on): aggs = {col: t[col].arbitrary() for col in t.columns if col not in on} return t. group_by(on).agg(**aggs)
Sorry, something went wrong.
Thank you, will give it a try!
No branches or pull requests
Is your feature request related to a problem?
At the moment Impala backend only supports .distinct() on a full table.
This works:
table.distinct()
This does not:
table.distinct(on=['col1', 'col2'])
What is the motivation behind your request?
This forces me to write verbose workarounds.
.distinct() on a subset of a table is pretty fundamental, in my view.
Describe the solution you'd like
The on clause in .distinct() should work.
What version of ibis are you running?
10.5
What backend(s) are you using, if any?
Impala
Code of Conduct
The text was updated successfully, but these errors were encountered: