Skip to content

Instantly share code, notes, and snippets.

@MrPowers
Created April 9, 2016 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrPowers/0b106f8263870065e059d96194388560 to your computer and use it in GitHub Desktop.
Save MrPowers/0b106f8263870065e059d96194388560 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("s3n://some_bucket/data/states/*.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment