-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support disk.frame objects #5
Comments
Blocked by DiskFrame/disk.frame#197 (using a Mac dev environment) |
DiskFrame/disk.frame#197 is resolved. Now blocked by DiskFrame/disk.frame#217 |
Also blocked by DiskFrame/disk.frame#250 |
Hey, all blockers are resolved and it is working! But with some bugs. See library(disk.frame)
setup_disk.frame()
airports.df = as.disk.frame(airports)
# this works
airports.df %>%
query("SELECT name as name1, lat as lat1, lon as lon1 ORDER BY lat DESC") %>%
collect but this doesn't airports.df %>%
query("SELECT name, lat, lon as lon1 ORDER BY lat DESC LIMIT 5") %>%
collect complaining about
and the
|
Thanks @xiaodaigh—I'll take a look at this soon |
@xiaodaigh this error is happening because |
I see. the design |
Another approach, which I think might be better is to set query <- function(data, ...) {
UseMethod("query")
}
query.data.frame <- function(data, sql) {
query_(data, sql, TRUE)
} then on query.disk.frame = create_chunk_mapper(tidyquery::query)
airports.df %>%
query("SELECT name, lat, lon as lon1") %>%
collect to test, this should definitely work airports.df %>%
query.disk.frame("SELECT name, lat, lon as lon1") %>%
collect This already on a branch on |
Closing because {disk.frame} has been soft-deprecated. |
See DiskFrame/disk.frame#196
The text was updated successfully, but these errors were encountered: