Support Questions
Find answers, ask questions, and share your expertise

Spark - how to get common columns from 2 rdd/df

Spark - how to get common columns from 2 rdd/df

Hi all,

I have 2 rdd or dataframe, each has 10 columns. Out 10 columns,2 are common.

I want fetch those 2 common columns. But i dont know the common column names.

Can someone please help on this.

--

Thanks