Skip to content

Commit eab6688

Browse files
Update 03-spark-table-demo.sql
1 parent 33d16ad commit eab6688

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

03-spark-table-demo.sql

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
-- Databricks notebook source
2-
drop table if exists demo_db.fire_service_calls_tbl;
3-
drop view if exists demo_db;
4-
51
-- COMMAND ----------
62

73
-- MAGIC %fs rm -r /user/hive/warehouse/demo_db.db
@@ -55,7 +51,8 @@ select * from demo_db.fire_service_calls_tbl
5551

5652
-- COMMAND ----------
5753

58-
truncate table demo_db.fire_service_calls_tbl
54+
truncate table demo_db.fire_service_calls_tbl
55+
--spark doesnt offer delete & update statement, but databricks does
5956

6057
-- COMMAND ----------
6158

@@ -68,4 +65,6 @@ select * from demo_db.fire_service_calls_tbl
6865

6966
-- COMMAND ----------
7067

71-
68+
-- Databricks notebook source
69+
drop table if exists demo_db.fire_service_calls_tbl;
70+
drop view if exists demo_db;

0 commit comments

Comments
 (0)