I have a DataFrame
which I want to extend by a new column. Creating a new DateFrame
from Row
s is explained here.
My current strategy is to construct new Row
s with the RowFactory from the Row
s that are passed into my map invoked by DataFrame.javaRDD().map(...)
but I fear that this might create unnecessary costs.
So I wonder if instead of creating new Row
s, can I just extend the existing Row
s by appending the new field. The Row
interface doesn't seem to allow that.