Multiple Aggregate operations on the same column of a spark dataframe
<p>I have three Arrays of string type containing following information:</p>

<ul>
<li>groupBy array: containing names of the columns I want to group my data by.</li>
<li>aggregate array: containing names of columns I want to aggregate.</li>
<li>operations array: containing the aggregate operations I want to perform</li>
</ul>

<p>I am trying to use spark data frames to achieve this. Spark data frames provide an agg() where you can pass a Map [String,String] (of column name and respective aggregate operation ) as input, however I want to perform different aggregation operations on the same column of the data. Any suggestions on how to achieve this?</p>