I have a Dataset loaded in the memory and for every row I need to updated the value of the particular column.
I Iterate thru every row and make an API call( passing row values as parameters ) that returns me different value for every single row. I collect these values into the ArrayList.
I tried to use :
List<Object> newValues = new ArrayList<>();
// populate the list with values
dataframe.withColumn("c1",functions.lit(newValues));
but I am getting
SparkRunTimeException : feature is not supported.
In essence what I need is to create a new Column that will contain all the values returned by my API call and then replace an existing column.