https://bigdataschool.ru/blog/compact-files-problems-in-spark-structured-streaming/