Skip to content

Deleted columns #73

@Make42

Description

@Make42

Hello, the data.frame sales_inspected has 11 columns. Here is the code I execute:

Putting the data.frame into hdfs:

output(input(as.data.frame(sales_inspected)), "/data/sales_inspected")

Processing the data and putting the result into hdfs:

output(bind.cols(input("/data/sales_inspected"), Unitval=Val/Quant), "/data/sales.out")

Loading the result into R:

sales.out <- as.data.frame( input("/data/sales.out") )

Processing the data and putting it into R:

sales.out2 <- input("/data/sales_inspected") %|% bind.cols(Unitval=Val/Quant) %|% as.data.frame

Comparing the results:

identical(sales.out,sales.out2)

It turns out, that during the bind.cols of the second way of doing it, leads to the loss of two columns. So sales.out has 12 columns (correctly), while sales.out2 only has 10 columns. Why is that? What went wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions