All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.spark.sql.ExtraSparkSessionFeature.scala Maven / Gradle / Ivy

There is a newer version: 0.12.0
Show newest version
package zio.spark.sql

import org.apache.spark.sql.{Sniffer212Plus, SparkSession => UnderlyingSparkSession}

import zio.{Task, Trace, ZIO}

abstract class ExtraSparkSessionFeature(underlyingSparkSession: UnderlyingSparkSession) {
  def withActive[T](block: => T)(implicit trace: Trace): Task[T] =
    ZIO.attempt(Sniffer212Plus.sparkSessionWithActive(underlyingSparkSession, block))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy