-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Netezza backend #3178
Comments
Hi @andreaspano , thank you for moving the conversation here. I recall that you mentioned that you already have some work done, is this in a fork I can take a look at? |
Hi Edgard require(odbc)
require(dplyr)
require(dbplyr)
con <- dbConnect(odbc::odbc(),
driver = "Simba",
database = "NYCFLIGHTS",
uid = "userR",
pwd = "xxx",
server = "192.168.69.xxx",
port = 5480)
dbListTables(con)
########################################
planes <- tbl(con, 'PLANES')
vars <- list('YEAR', 'TYPE', 'MANUFACTURER')
limit <- 10
arrange <- list('YEAR', 'TYPE', 'MANUFACTURER')
tbl <- 'PLANES'
df_dplyr <- planes %>%
select_(.dots = vars) %>%
arrange_(.dots = arrange) %>%
head(limit) %>%
collect()
qry <- paste('select', paste(vars, collapse = ', '),
'from' , tbl,
'order by', paste(arrange, collapse = ', '),
'limit', limit )
df_sql <- dbGetQuery(con, qry) %>% as_tibble()
identical(df_dplyr, df_sql)
################################################
dbDisconnect(con) |
Ok great, it looks like the default translation is working for you so far. Here's the package I use to test translations: https://github.com/rstudio/dbtest Please let me know if you have questions or issues using it in your environment |
Using the
|
This issue was moved by hadley to tidyverse/dbplyr/issues/97. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
I would like to contribute at the translation of dplyr for ibm netezza
The text was updated successfully, but these errors were encountered: