Skip to content

Misleading "Error processing duckplyr query with DuckDB" #605

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

Open
maelle opened this issue Feb 11, 2025 · 7 comments
Open

Misleading "Error processing duckplyr query with DuckDB" #605

maelle opened this issue Feb 11, 2025 · 7 comments
Labels
help wanted ❤️ we'd love your help!

Comments

@maelle
Copy link
Collaborator

maelle commented Feb 11, 2025

I find it confusing the message says "error" while there is no actual R error.

@maelle
Copy link
Collaborator Author

maelle commented Feb 11, 2025

Especially because of the red color.

I am obviously aware of fallbacks but still thought I had done something wrong when I saw the red word "Error". 😂

@krlmlr
Copy link
Member

krlmlr commented Mar 19, 2025

Do you remember the context?

@maelle
Copy link
Collaborator Author

maelle commented Mar 20, 2025

Yes! But I agree this issue is poorly written, sorry about that.

When you get a fallback, at least last time I tried (for the blog post) I got a message in red that said "Error processing duckplyr query with DuckDB". But it wasn't an actual error since there was a fallback. Despite knowing about fallbacks, I was first taken aback and thought it was an error.

Now I should try and find a reprex.

@maelle
Copy link
Collaborator Author

maelle commented Mar 20, 2025

rlang::cnd_signal(rlang::message_cnd(message = "Error processing duckplyr query with DuckDB, falling back to dplyr.", parent = out))

@maelle
Copy link
Collaborator Author

maelle commented Mar 20, 2025

I'd suggest rephrasing so that error does not come first. Maybe just switching the two parts of the sentence. I imagine other users might have a strong reaction to a message starting with "Error" 😂

@krlmlr
Copy link
Member

krlmlr commented Mar 20, 2025

Good idea, let's call it "Could not process duckplyr query with DuckDB" or similar.

@krlmlr krlmlr added the help wanted ❤️ we'd love your help! label Mar 20, 2025
@moodymudskipper
Copy link

When falling back to dplyr 'duckplyr' prints a message "Error processing duckplyr query with DuckDB, falling back to dplyr.".

It is not an error however so this is confusing to the user. We want to use instead something like "Could not process duckplyr query with DuckDB" or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted ❤️ we'd love your help!
Projects
None yet
Development

No branches or pull requests

3 participants