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

Allow NULL to remove columns #194

Closed
hadley opened this issue Dec 24, 2018 · 2 comments
Closed

Allow NULL to remove columns #194

hadley opened this issue Dec 24, 2018 · 2 comments
Labels
feature func trans 🌍
Milestone

Comments

@hadley
Copy link
Member

@hadley hadley commented Dec 24, 2018

library(dplyr, warn.conflicts = FALSE)

dbplyr::memdb_frame(x = 1:5, y = 1:5) %>% 
  mutate(
    x1 = x + 1,
    z = x1 + x,
    x1 = NULL
  ) %>% 
  show_query()
#> Error in if (length(ans) == 0L || as.character(ans[[1L]])[1L] == "~") {: missing value where TRUE/FALSE needed

Created on 2018-12-24 by the reprex package (v0.2.1)

@hadley hadley added feature func trans 🌍 labels Jan 2, 2019
@hadley hadley added this to the v1.4.0 milestone Jan 10, 2019
@hadley
Copy link
Member Author

@hadley hadley commented Jan 10, 2019

Requires r-lib/rlang#715 first

@hadley
Copy link
Member Author

@hadley hadley commented Feb 6, 2019

Minimal reprex:

library(dbplyr)
translate_sql(NULL)
#> Error in if (length(ans) == 0L || as.character(ans[[1L]])[1L] == "~") {: missing value where TRUE/FALSE needed

Created on 2019-02-06 by the reprex package (v0.2.1.9000)

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

No branches or pull requests

1 participant