Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save MrPowers/983333647149e6a0260fcfc526c51be2 to your computer and use it in GitHub Desktop.

Select an option

Save MrPowers/983333647149e6a0260fcfc526c51be2 to your computer and use it in GitHub Desktop.
val df = sqlContext.read
.format("com.databricks.spark.csv")
.option("header", "true")
.option("inferSchema", "true")
.load(System.getProperty("user.home") + "/Desktop/people/*.gz")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment