Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

dplyr::compute() function not working with MonetDB server driver #186

Open
palmaresk8 opened this issue Aug 9, 2017 · 1 comment
Open

Comments

@palmaresk8
Copy link

I want to create a table (permanent or not) as a result of some data manipulation without transfering data to R (only keeping data in MonetDB server), but the compute() function is not working when I use the MonetDB.R() driver, although It works with the MonetDBLite() driver.

Reproducible: Always
Steps to Reproduce:

library(MonetDBLite)
library(DBI)
library(dplyr)

# Connect to the database
conn <- dbConnect(
  MonetDB.R(),
  host = "localhost",
  dbname = "ipea",
  user = "monetdb",
  password = "monetdb",
  timeout = 86400L
)

# Create a table
dbWriteTable(conn, "mtcars", mtcars)
dbListTables(conn)

# Connect to the table
x <- tbl(conn, "mtcars")
View(x)

# Manipulate data
y <- x %>% filter(gear==4)
View(y)

# Compute
z <- compute(y)
dbListTables(conn)
View(z)

# Disconnect from database
dbDisconnect(conn)

Actual Results: empty table
Expected Results: table with manipulate data.

Note that the same code above works well if I use a MonetDBLite connection driver:

conn <- dbConnect( MonetDBLite(), "C:/MonetDBdata/ipea" )

@hannes
Copy link
Owner

hannes commented Aug 21, 2017

Yes this is indeed an issue with standalone MonetDB.

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

No branches or pull requests

2 participants