filter in can not take empty vector of values on PostgreSQL #160
Labels
bug
an unexpected problem or unintended behavior
func trans 🌍
Translation of individual functions to SQL
wip
work in progress
@JohnMount commented on Feb 22, 2018, 3:59 PM UTC:
filter
%in% c()
throws on PostgreSQL.db <- DBI::dbConnect(RPostgreSQL::PostgreSQL(),
host = 'localhost',
port = 5432,
user = 'johnmount',
password = '')
table <- dplyr::copy_to(db,
data.frame(idx = 1:5))
works
vals <- c(1, 2)
table %>% filter(idx %in% vals)
throws
vals <- c()
table %>% filter(idx %in% vals)
DBI::dbDisconnect(db)
The text was updated successfully, but these errors were encountered: