Skip to content

Instantly share code, notes, and snippets.

@saisgit
Created July 25, 2021 15:11
Show Gist options
  • Select an option

  • Save saisgit/616785dc149f394b9c5d429ab16344a3 to your computer and use it in GitHub Desktop.

Select an option

Save saisgit/616785dc149f394b9c5d429ab16344a3 to your computer and use it in GitHub Desktop.
import org.apache.spark.sql.DataFrame
val filePath: String = "/user/hive/warehouse/product_avro"
val avroDF: DataFrame = spark.read.format("avro").load(filePath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment