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

com.datawizards.dqm.configuration.location.HiveTableLocation.scala Maven / Gradle / Ivy

package com.datawizards.dqm.configuration.location

import org.apache.spark.sql.{DataFrame, SparkSession}

case class HiveTableLocation(table: String) extends TableLocation {
  private lazy val spark = SparkSession.builder().getOrCreate()

  override def load(): DataFrame =
    spark.read.table(table)

  override def tableName: String = table
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy