Created
March 7, 2020 04:40
-
-
Save pphetra/5eb673bc8e52ae9aadfb541c7be15249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
covid060320 = spark\ | |
.read\ | |
.option("inferSchema", "true")\ | |
.option("header", "true")\ | |
.csv("03-06-2020.csv") | |
covid060320.take(10) | |
covid060320.sort("Deaths").explain() | |
spark.conf.set("spark.sql.shuffle.partitions", "5") | |
covid060320.sort("Deaths").explain() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val covid060320 = spark | |
.read | |
.option("inferSchema", "true") | |
.option("header", "true") | |
.csv("03-06-2020.csv") | |
covid060320.take(10) | |
covid060320.sort("Deaths").explain() | |
spark.conf.set("spark.sql.shuffle.partitions", "5") | |
covid060320.sort("Deaths").explain() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment