Skip to content

Instantly share code, notes, and snippets.

@saisgit
Created July 25, 2021 15:12
Show Gist options
  • Save saisgit/9e076f62c9330e9a21dffeac6b01d97c to your computer and use it in GitHub Desktop.
Save saisgit/9e076f62c9330e9a21dffeac6b01d97c to your computer and use it in GitHub Desktop.
import org.apache.spark.sql.DataFrame
val filePath: String = "/user/hive/warehouse/product_json"
val jsonDF = spark.read.format("json").load(filePath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment