Skip to content
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

Is generated SQL available? #132

Open
bob-rietveld opened this issue Apr 4, 2024 · 3 comments
Open

Is generated SQL available? #132

bob-rietveld opened this issue Apr 4, 2024 · 3 comments

Comments

@bob-rietveld
Copy link

Hi,

Thanks for your work on this package, it's super nice and fast! May be I missed it , but is there somewhere I can access the SQL statement that is being executed on duckdb ? Explain() provides the plan, but is it possible to get the SQL statement in a variable in R? Similar to show_query() in dbplyr (https://dbplyr.tidyverse.org/articles/sql.html) , is what I am looking for. Thanks.

@krlmlr
Copy link
Collaborator

krlmlr commented Apr 5, 2024

duckplyr never generates SQL. Need to update the documentation to clarify this.

@krlmlr
Copy link
Collaborator

krlmlr commented Apr 5, 2024

We use the "relational API" that is very similar to Codd's relational algebra. These functions are currently private in duckdb.

@bob-rietveld
Copy link
Author

Aha, thanks for clarifying.

@krlmlr krlmlr reopened this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants