To remove duplicate column names in dataset

Removes duplicate column from dataset
Suppose DataSet A(DSA) have A:chararray,B:chararray and 
DataSet B(DSB) have A:chararray,C:chararray

After joining DSA and DSB by A;

We will get new output
DSA::A:chararray,DSA::B:chararray,DSB::A:chararray,DSB::C:chararray

Thus retaining the unique column and their data.
DSA::A,DSA::B,DSB::C