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

head() modifies SELECT * #1482

Open
jonathanvoelkle opened this issue Mar 22, 2024 · 0 comments
Open

head() modifies SELECT * #1482

jonathanvoelkle opened this issue Mar 22, 2024 · 0 comments

Comments

@jonathanvoelkle
Copy link

When using head() on a tbl, the select all statement is modified. Example below. In the example this is not a problem itself, but when calling tables in a specific schema, the name of the table is added, but the name of the schema is not. (I'm not quite sure for which backends this exactly is a problem.)

suppressMessages(library(dbplyr))
suppressMessages(library(dplyr, warn.conflicts = FALSE))
df <- memdb_frame(x = runif(26), y = runif(26))
df |> show_query()
#> <SQL>
#> SELECT *
#> FROM `dbplyr_98Ik9vEYQa`
df |> head() |> show_query()
#> <SQL>
#> SELECT `dbplyr_98Ik9vEYQa`.*
#> FROM `dbplyr_98Ik9vEYQa`
#> LIMIT 6

Created on 2024-03-22 with reprex v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant