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
Sparklyr rename fails with dev version of dplyr #2776
Comments
|
Please just file as a sparklyr issue. |
|
Filed as suppressPackageStartupMessages(library('dplyr'))
packageVersion("dplyr")
#> [1] '0.7.0'
library('sparklyr')
packageVersion("sparklyr")
#> [1] '0.5.5.9002'
if(requireNamespace("dbplyr", quietly = TRUE)) {
packageVersion("dbplyr")
}
#> [1] '0.0.0.9001'
R.Version()$version.string
#> [1] "R version 3.4.0 (2017-04-21)"
dLocal <- data.frame(x = 1:2,
origCol = c('a', 'b'),
stringsAsFactors = FALSE)
sc <- sparklyr::spark_connect(version='2.0.2',
master = "local")
d <- copy_to(sc, dLocal, 'd')
# works
rename(dLocal, x2 = x, origCol2 = origCol)
#> x2 origCol2
#> 1 1 a
#> 2 2 b
# throws
rename(d, x2 = x, origCol2 = origCol)
#> Error in names(select)[match(old_vars, vars)] <- new_vars: NAs are not allowed in subscripted assignments |
This was referenced Jun 9, 2017
|
Looks related to dplyr 2860. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
MZLABS commentedMay 14, 2017
•
edited
Rename fails in Sparklyr, think it depends on verison of dplyr. Definitely seeing it in the dev version of dplyr as of 5-14-2017.
The text was updated successfully, but these errors were encountered: