Skip to content

fix(clickhouse): use named rather than positional group by #6106

New issue

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

Merged

Conversation

JackFielding
Copy link
Contributor

Closes: #6101

@JackFielding
Copy link
Contributor Author

I'll stop work on this for now because it's clear that in the tests using positional arguments was intentional. It would probably benefit from a look over from someone more familiar with ibis.

Copy link
Member

@gforsyth gforsyth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @JackFielding -- thanks for putting this in! This looks like a reasonable change to me -- the failing tests are SQL snapshot tests and this change is (understandably) changing that output to something semantically equivalent but not explicitly equal.

You can update the snapshot files by running pytest --snapshot-update

@cpcloud cpcloud force-pushed the clickhouse-not-positional-group-by branch from ce17f3e to e355d0a Compare April 28, 2023 18:08
@cpcloud cpcloud added this to the 6.0 milestone Apr 28, 2023
@cpcloud cpcloud added bug Incorrect behavior inside of ibis clickhouse The ClickHouse backend labels Apr 28, 2023
Copy link
Member

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed up the snapshots, LGTM!

@cpcloud cpcloud enabled auto-merge (rebase) April 28, 2023 18:09
@cpcloud cpcloud disabled auto-merge April 28, 2023 18:30
@cpcloud
Copy link
Member

cpcloud commented Apr 28, 2023

Merging!

@cpcloud cpcloud merged commit d2216f7 into ibis-project:master Apr 28, 2023
@cpcloud
Copy link
Member

cpcloud commented Apr 28, 2023

Thanks for the PR @JackFielding!

@JackFielding
Copy link
Contributor Author

Thank you both for your help!

@JackFielding JackFielding deleted the clickhouse-not-positional-group-by branch May 2, 2023 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis clickhouse The ClickHouse backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Do not use Positional Arguments in ClickHouse GROUP BY
3 participants