PySpark and broadcast join example
Spark 1.3 doesn’t support broadcast joins using DataFrame. In Spark >= 1.5.0 you can use broadcast function to apply broadcast joins: from pyspark.sql.functions import broadcast data1.join(broadcast(data2), data1.id == data2.id) For older versions the only option is to convert to RDD and apply the same logic as in other languages. Roughly something like this: from pyspark.sql … Read more