https://www.bigdataschool.ru/blog/spark-session-and-context-under-the-hood.html
Тонкости SparkSession в Apache Spark Structured Streaming