In Spark how can I create a tuple from row as
(Col1 , Col2,Col3 ,(Col4+Col5+Col6))
I have 400+ dynamic generated column names . I don't wanted to do this aggregation at DB so select col1,col2,col3, (col4+col5+col6) is not the solution. I'm using cassandra for datastore