I have two Spark dataframes:
>df1
+---------------+
| values|
+---------------+
|[a, b, c, d, ..|
+---------------+
>df2
+---+---------+
| id| number|
+---+---------+
| 1| 34523|
| 2| 56438|
| 5| 90342|
+---+---------+
How can I add column values from df1 as constant value to each row in df2?
Expected output:
+---+---------+---------------+
| id| number| values|
+---+---------+---------------+
| 1| 34523|[a, b, c, d, ..|
| 2| 56438|[a, b, c, d, ..|
| 5| 90342|[a, b, c, d, ..|
+---+---------+---------------+