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

io.hydrosphere.mist.lib.SQLSupport_Spark2.scala Maven / Gradle / Ivy

package io.hydrosphere.mist.lib

import io.hydrosphere.mist.contexts.ContextWrapper
import org.apache.spark.sql.SparkSession

trait SQLSupport extends SessionSupport {

  private var _session: SparkSession = _

  override def session: SparkSession = _session

  override private[mist] def setup(sc: ContextWrapper): Unit = {
    super.setup(sc)
    _session = sc.sparkSession
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy