SlidePub
Home
Categories
Login
Register
Home
General
Relational-Entities-on-Databricksubububj u
Relational-Entities-on-Databricksubububj u
SarapaoPss
26 views
11 slides
Oct 12, 2024
Slide
1
of 11
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
About This Presentation
yvybybyb
Size:
388.8 KB
Language:
en
Added:
Oct 12, 2024
Slides:
11 pages
Slide Content
Slide 1
Relational Entities on
Databricks
Slide 2
Learning Objectives
uDatabases
uTables
uThe impact of the LOCATION keyword
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 3
Database
uDatabases = Schemas in Hive metastore
uCREATE DATABASE db_name
uCREATE SCHEMA db_name
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 4
Hive metastore
urepository of metadata
uDatabases
uTables
u…
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 5
Storage
-default
-table_1
-table_2
-…
central
Hive
metastore
CREATE TABLE table1;
CREATE TABLE table2;
…
Workspace
dbfs:/user/hive/warehouse
table_1table_2
…
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 6
Storage
-default
-table_1
-table_2
-…
-db_x
-table_1
-table_2
-…
central
Hive
metastore
CREATE SCHEMA db_x
USE db_x;
CREATE TABLE table1;
CREATE TABLE table2;
…
Workspace
dbfs:/user/hive/warehouse
table_1table_2
…
table_1
table_2
…
db_x.db
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 7
Storage
-default
-table_1
-table_2
-…
-db_x
-table_1
-table_2
-…
-db_y
-table_1
-table_2
-…
central
Hive
metastore
CREATE SCHEMA db_y
LOCATION‘dbfs:/custom/path/db_y.db’
USE db_y;
CREATE TABLE table1;
CREATE TABLE table2;
…
Workspace
dbfs:/user/hive/warehouse
table_1table_2
…
table_1
table_2
…
db_x.db
dbfs:/custom/path
table_1
table_2
…
db_y.db
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 8
Tables
Manged tables
uCreated under the database
directory
uCREATE TABLE table_name
uDropping the table, delete the
underlying data files
External tables
uCreated outside the database
directory
uCREATE TABLE table_name
LOCATION‘path’
uDropping the table, will Not
delete the underlying data files
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 9
dbfs:/user/hive/warehouse
table_1table_2
…
table_1
table_2
…
db_x.db
dbfs:/custom/path
table_1
table_2
…
y.db
CREATE TABLE table3
LOCATION‘dbfs:/some/path_1/table3’
dbfs:/some/path_1
table_3
-default
-table_1
-table_2
-table_3
-db_x
-table_1
-table_2
-db_y
-table_1
-table_2
central
Hive
metastore
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 10
USE db_x;
CREATE TABLE table3
LOCATION‘dbfs:/some/path_2/x_table3’;
-default
-table_1
-table_2
-table_3
-db_x
-table_1
-table_2
-table_3
-db_y
-table_1
-table_2
central
Hive
metastore
dbfs:/some/path_2
x_table_3
dbfs:/user/hive/warehouse
table_1table_2
…
table_1
table_2
…
db_x.db
dbfs:/custom/path
table_1
table_2
…
y.db
dbfs:/some/path_1
table_3
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Slide 11
USE db_y;
CREATE TABLE table3
LOCATION‘dbfs:/some/path_2/y_table3’;
-default
-table_1
-table_2
-table_3
-db_x
-table_1
-table_2
-table_3
-db_y
-table_1
-table_2
-table_3
central
Hive
metastore
y_table_3
dbfs:/user/hive/warehouse
table_1table_2
…
table_1
table_2
…
db_x.db
dbfs:/custom/path
table_1
table_2
…
y.dbdbfs:/some/path_2
x_table_3
dbfs:/some/path_1
table_3
Derar Alhussein © Udemy | Databricks Certified Data Engineer Associate -Preparation
Tags
Categories
General
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
26
Slides
11
Age
423 days
Related Slideshows
22
Pray For The Peace Of Jerusalem and You Will Prosper
RodolfoMoralesMarcuc
35 views
26
Don_t_Waste_Your_Life_God.....powerpoint
chalobrido8
38 views
31
VILLASUR_FACTORS_TO_CONSIDER_IN_PLATING_SALAD_10-13.pdf
JaiJai148317
34 views
14
Fertility awareness methods for women in the society
Isaiah47
31 views
35
Chapter 5 Arithmetic Functions Computer Organisation and Architecture
RitikSharma297999
30 views
5
syakira bhasa inggris (1) (1).pptx.......
ourcommunity56
31 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-11)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better