vertica / ddR

Standard API for Distributed Data Structures in R
GNU General Public License v2.0
118 stars 17 forks source link

rbind, cbind fail on dataframes #14

Open clarkfitzg opened 8 years ago

clarkfitzg commented 8 years ago

This works fine in base R.

> df <- as.dframe(iris)
> df2 <- rbind(df, df)
Error in do_dmapply(ddR.env$driver, func = match.fun(FUN), ..., MoreArgs = MoreArgs,  :
  Each partition of the result should be of type = data.frame, to match with output.type =dframe
clarkfitzg commented 8 years ago

Also seems to be an issue with darrays.

>
> m1 = matrix(1:20, nrow=4)
> rbind(m1, m1)
     [,1] [,2] [,3] [,4] [,5]
[1,]    1    5    9   13   17
[2,]    2    6   10   14   18
[3,]    3    7   11   15   19
[4,]    4    8   12   16   20
[5,]    1    5    9   13   17
[6,]    2    6   10   14   18
[7,]    3    7   11   15   19
[8,]    4    8   12   16   20

> dm1 = as.darray(m1, psize = c(2, 5))
> dm1

ddR Distributed Object
Type: darray
# of partitions: 2
Partitions per dimension: 2x1
Partition sizes: [2, 5], [2, 5]
Dim: 4,5
Backend: parallel
> rbind(dm1, dm1)
Error in do_dmapply(ddR.env$driver, func = match.fun(FUN), ..., MoreArgs =
MoreArgs,  :
  Adjacent partitions have different number of columns, should be 5
>