Hi.
I think that it's possible to do:
*df.select($"*", lit(null).as("col17", lit(null).as("col18",
lit(null).as("col19",........, lit(null).as("col26")*
Any other advice?
Miguel.
On Wed, May 27, 2015 at 5:02 PM, Masf <[email protected]> wrote:
> Hi.
>
> I have a DataFrame with 16 columns (df1) and another with 26 columns(df2).
> I want to do a UnionAll. So, I want to add 10 columns to df1 in order to
> have the same number of columns in both dataframes.
>
> Is there some alternative to "withColumn"?
>
> Thanks!!!!
>
> --
> Regards.
> Miguel Ángel
>
--
Saludos.
Miguel Ángel