Foreachpartition Spark Scala, 0: Supports Spark Connect.