-
Notifications
You must be signed in to change notification settings - Fork 600
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
value_counts: sqlalchemy.exc.ProgrammingError: (duckdb.BinderException) #4940
Comments
Hey @MarcSkovMadsen thanks for the report. It looks like this might an issue with duckdb. Repeating the grouping key expression in the We'll report this upstream and for now you can do this instead: df = df.mutate(forceast=df.forecast.bucket(buckets)).forecast.value_counts() |
Thanks a lot. Also, for providing a work around. Then I can move forward bringing Ibis and hvPlot, HoloViews, Datashader etc. closer to each. |
Hi. First off, thank you very much to all the contributors to the Ibis Project! Your work is greatly appreciated. I am fairly new to the Ibis Project and was working through the Ibis Tutorial (replicated with the DuckDB backend and a DuckDB database file) and I am also experiencing the DuckDB backend Not sure if it is helpful, but I have recreated a portion of the Ibis Tutorial in Google Colab for easy reproduction of the error. https://colab.research.google.com/drive/1m0n4NSpWWq2EB-xw1MPH1gvdAhgUHXTQ?usp=sharing Thanks again! |
@MarcSkovMadsen @earlev4 Thanks for the colab notebook, it definitely helped me figure out a solution to this issue. Can y'all give a try against |
Hi @cpcloud. Glad the colab notebook was helpful. Thanks so much for looking into the issue! I sincerely appreciate it. Perhaps, I am doing something wrong, but on countries.group_by(continent_name).aggregate(
countries['population'].sum().name('total_population')
) Error: BinderException: Binder Error: column "continent" must appear in the GROUP BY clause or must be part of an aggregate function.
Either add it to the GROUP BY list, or use "ANY_VALUE(continent)" if the exact value of "continent" is not important.
LINE 1: SELECT CASE WHEN (t0.continent = CAST(? AS TEXT)) THEN CA... I confirmed the code in the Ibis tutorial documentation - Aggregating data. Looking forward to feedback from @MarcSkovMadsen. The colab notebook is updated too. Thanks again!!! I am very grateful for your time and help. |
@earlev4 When I add these lines to the first cell it successfully completes:
It seems like we may have uncovered a bug in our dispatch due to accessing a pandas API that is relatively recent. |
Hi @cpcloud. Thanks for the clarification on the the install. I appreciate it. The results look good! Thanks so much!!! |
What happened?
I'm trying to see if I can get the support for Ibis working in hvPlot and HoloViews. Right now for histograms.
Running some code witht the duckDB backend I get a
sqlalchemy.exc.ProgrammingError: (duckdb.BinderException) Binder Error
.What version of ibis are you using?
3.2.0
What backend(s) are you using, if any?
DuckDB==0.6.0
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: