https://bigdataschool.ru/blog/spark-streaming-sampling-union-vs-join/