Skip to content

Commit ce16c2d

Browse files
SireInsectusSireInsectus
authored andcommitted
Publishing v2.2.1
1 parent 451a55c commit ce16c2d

File tree

8 files changed

+16
-17
lines changed

8 files changed

+16
-17
lines changed

Apache-Spark-Programming-with-Databricks/ASP 1 - Introductions/ASP 1.1 - Databricks Platform.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@
149149

150150
# COMMAND ----------
151151

152+
# MAGIC %fs mounts
153+
154+
# COMMAND ----------
155+
152156
# MAGIC %fs ls /databricks-datasets
153157

154158
# COMMAND ----------

Apache-Spark-Programming-with-Databricks/ASP 2 - Spark Core/ASP 2.3 - DataFrame & Column.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@
207207

208208
# MAGIC %md #### **`filter()`**
209209
# MAGIC Filters rows using the given SQL expression or column based condition.
210+
# MAGIC
211+
# MAGIC ##### Alias: **`where`**
210212

211213
# COMMAND ----------
212214

Apache-Spark-Programming-with-Databricks/ASP 5 - Streaming/ASP 5.1bL - Hourly Activity by Traffic Lab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
# MAGIC %md ### 3. Execute query with display() and plot results
9595
# MAGIC - Use **`display`** to start **`traffic_df`** as a streaming query and display the resulting memory sink
96-
# MAGIC - Assign "hourly_traffic" as the name of the query by seting the **`streamName`** parameter of **`display`**
96+
# MAGIC - Assign "hourly_traffic" as the name of the query by setting the **`streamName`** parameter of **`display`**
9797
# MAGIC - Plot the streaming query results as a bar graph
9898
# MAGIC - Configure the following plot options:
9999
# MAGIC - Keys: **`hour`**

Apache-Spark-Programming-with-Databricks/Includes/Reset.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22
# Does any work to reset the environment prior to testing.
33
import re, time
44

5-
try:
6-
dbutils.fs.unmount("/mnt/training")
7-
time.sleep(15) # for some reason things are moving too fast
8-
except:
9-
print("/mnt/training isn't mounted")
10-
11-
try:
12-
dbutils.fs.ls("/mnt/training")
13-
raise Exception("Mount shouldn't exist")
14-
except:
15-
# This is good, mount has been removed
16-
print("/mnt/training confirmed to not exist")
17-
185
# Drop any lingering databases
196
username = spark.sql("SELECT current_user()").first()[0].lower()
207
clean_username = re.sub("[^a-zA-Z0-9]", "_", username)

Apache-Spark-Programming-with-Databricks/Solutions/ASP 1 - Introductions/ASP 1.1 - Databricks Platform.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@
149149

150150
# COMMAND ----------
151151

152+
# MAGIC %fs mounts
153+
154+
# COMMAND ----------
155+
152156
# MAGIC %fs ls /databricks-datasets
153157

154158
# COMMAND ----------

Apache-Spark-Programming-with-Databricks/Solutions/ASP 2 - Spark Core/ASP 2.3 - DataFrame & Column.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@
207207

208208
# MAGIC %md #### **`filter()`**
209209
# MAGIC Filters rows using the given SQL expression or column based condition.
210+
# MAGIC
211+
# MAGIC ##### Alias: **`where`**
210212

211213
# COMMAND ----------
212214

Apache-Spark-Programming-with-Databricks/Solutions/ASP 5 - Streaming/ASP 5.1bL - Hourly Activity by Traffic Lab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103

104104
# MAGIC %md ### 3. Execute query with display() and plot results
105105
# MAGIC - Use **`display`** to start **`traffic_df`** as a streaming query and display the resulting memory sink
106-
# MAGIC - Assign "hourly_traffic" as the name of the query by seting the **`streamName`** parameter of **`display`**
106+
# MAGIC - Assign "hourly_traffic" as the name of the query by setting the **`streamName`** parameter of **`display`**
107107
# MAGIC - Plot the streaming query results as a bar graph
108108
# MAGIC - Configure the following plot options:
109109
# MAGIC - Keys: **`hour`**

Apache-Spark-Programming-with-Databricks/Version Info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# MAGIC %md # Project Information
1111
# MAGIC
1212
# MAGIC * Name: **Apache Spark Programming with Databricks**
13-
# MAGIC * Version: **2.2.0**
14-
# MAGIC * Built On: **May 2, 2022 at 16:23:19 UTC**
13+
# MAGIC * Version: **2.2.1**
14+
# MAGIC * Built On: **May 20, 2022 at 18:06:10 UTC**
1515

1616
# COMMAND ----------
1717

0 commit comments

Comments
 (0)