I have a simple spark function to test DF windowing:
import org.apache.spark.sql.{DataFrame, SparkSession} object ScratchPad { def main(args:
Folowing quick and dirty hack solves the problem
System.setSecurityManager(null)
Anyway as it's related to automated tests only maybe it's not that problematic after all ;)