I\'m trying to upgrade my app from Spark 2.4.4 to Spark 3.0. I\'m using the following api to union JavaPairRdd and List (see here):
union(JavaPairRDD