Spark SQL generic dataset reading

后端 未结 0 552
闹比i
闹比i 2021-01-23 13:22

I would like to create a generic trait for loading Datasets:

case class Foo(name: String)

trait Loader[T] {
  def load(implicit spark: SparkSession): Dataset[T]          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题