Welcome to Data Engineering!
1
Enrollment is Ongoing, Room Capacity Announcements
If you cannot find a fixed seat to sit in, for safety reasons we will need to ask you to leave. Recording posted on bCourses as soon as it is available.
Enrollment: (also see FAQ on class website)
2
Aditya Parameswaran
4
Data Engineering: What? Why?
Course Trajectory
Course Logistics
Data System Paradigms
Outline
Data Science: The Conventional View
Data Science: The Conventional View�
A data scientist operating alone, on one static dataset at a time, with a clean “rectangular” shape and fitting in main-memory, employing various statistical and ML algorithms on predefined objectives.
5
Data Science Data Engineering
Data Science: The Conventional View�
A data scientist operating alone, on one static dataset at a time, with a clean “rectangular” shape and fitting in main-memory, employing various statistical and ML algorithms on predefined objectives.
Nowadays, Data Science also involves Data Engineering:
A set of activities that include collecting, collating, extracting, moving, transforming, cleaning, integrating, organizing, representing, storing, and processing data.
6
A lot of data engineering must happen to support the conventional view!
Why Learn Data Engineering?
Data engineering is an essential ingredient�of real-world DS projects.
A set of activities that include collecting, collating, extracting, moving, transforming, cleaning, integrating, organizing, representing, storing, and processing data.
7
The backbone, plumbing, or infrastructure that supports data science.
Data engineering is as essential as plumbing!
[1 / 3] Why Learn Data Engineering?
Data Science/AI largely focuses on Data Engineering
8
“ML code” is not only a small fraction of the system; it is also often simple—calls to standard libraries (sklearn, pytorch, etc.)
Sculley et al., SE4ML 2014 [google research].
[1 / 3] Why Learn Data Engineering?
“Under the strong influence of the current AI hype, people try to plug in data that’s dirty & full of gaps, that spans years while changing in format and meaning, that’s not understood yet, that’s structured in ways that don’t make sense, and expect those tools to magically handle it.”
9
Monica Rogati, 2017 [blog].
[2 / 3] Why Learn Data Engineering?
Data engineer roles >> data scientist roles.
10
“… 70% more open roles at companies in data engineering as compared to data science.”
Mihail Eric, Jan 2021.[blog]
Typical job categorization:
New! ML Engineer: a specialization of data engineer focused on operationalizing ML.
[3 / 3] Why Learn Data Engineering?
New skills! Balance your data techniques with a systems perspective.
11
As a Data Science major, you are likely familiar with techniques: statistics/ML concepts & algorithms…
…but you are likely less familiar with systems.
So…what is Data 101 about?
Essentially, it’s all about data systems.
Unfortunately there are many, many data systems – too many for us to cover.
12
2023 MAD (ML/AI/Data) Landscape: blog, interactive
Why Learn Data Engineering?
Data engineering is an essential ingredient�of real-world data science projects.
A set of activities that include collecting, collating, extracting, moving, transforming, cleaning, integrating, organizing, representing, storing, and processing data.
Understanding these skills will help you…:
13
The backbone, plumbing, or infrastructure that supports data science.
14
Data Engineering: What? Why?
Course Trajectory
Course Logistics
Data System Paradigms
Outline
Roots and Foundations
Data Systems has a long history of academic and industrial interplay.
🎢 Academic jargon meets industry buzzwords!
🤝 Formal foundations meets best practices!
15
MIT; Founded 2005,
Acq. 2011 (HPE)
Stanford; Founded 2003, IPO,
Acq. 2019 (Salesforce)
Founded 2022 based on DuckDB from CWI
$100+M of funding
Roots and Foundations
Data Systems has a long history of academic and industrial interplay.
🎢 Academic jargon meets industry buzzwords!
🤝 Formal foundations meets best practices!
16
MIT; Founded 2005,
Acq. 2011 (HPE)
Stanford; Founded 2003, IPO,
Acq. 2019 (Salesforce)
Founded 2022 based on DuckDB from CWI
$5OM of funding
Founded 2013,
Acq. 2022 (Alteryx)
Founded 2013 based on Apache Spark; one of the hottest pre-IPO startups
Founded 1996, one of the most popular open-source databases, with many startups & established co. offerings
Founded 2019,
$280+M raised
Founded 2021
Acq. 2023
(Snowflake)
Two foundational approaches
Code-centric
Query-centric
Main Storage API is files.
Libraries in general-purpose programming languages, various flavors
17
?
Two foundational approaches
Code-centric
Query-centric
Main Storage API is files.
Libraries in general-purpose programming languages, various flavors
Main Storage API is tables.
One language/paradigm for (almost) everything
18
?
Our approach: Query-centric but Open-Minded
Structured Query Language (SQL): A domain-specific language for data
Based on Relational Algebra and Relational Calculus
19
Our approach: Query-centric but Open-Minded
…but nothing’s perfect!
20
Class Journey (note: out of order)
SQL review
Advanced SQL queries (views, subqueries, window functions, …)
DML, DDL, Referential integrity, index selection, performance tuning
Data transformation and preparation,�Data wrangling and cleaning
Non-relational data models (Tensors, Spreadsheets, etc.), semistructured data (and mongoDB)
Relational Model and Algebra, ER and normalization, Spreadsheets, Transactions, BI and OLAP, parallel computing, data pipelines, …
21
Project 1
Project 2
Project 3
Project 4
Homework Assignments
Project 0
If time permits, security/privacy, LLMs-meet-data engg, cloud computing, …
22
Data Engineering: What? Why?
Course Trajectory
Course Logistics
Data System Paradigms
Outline
Our wonderful Fall 2025 Course Staff: Head TAs
23
Sahil Bhatia
Bing Concepcion
Our wonderful Fall 2025 Course Staff: TAs
24
Vicky
Huang
Joshua
Chuang
Brian
Sui
Pranav Perumandla
Elizabeth
Fiske
Our wonderful Fall 2025 Course Staff: Tutors
25
Thanh
Tran
Sofia
Garcia
Jiajun
Liu
Sydney
Tung
Shashwat
Bansal
Syllabus Walkthrough
26
Beginning-of-Semester Logistics
Discussion Sections
Stay tuned. Start next week!
Not recorded, but handouts/solutions will be posted.
Office Hours
Stay tuned. Start next week!
27
We are in this class together!
Some of the content will experimental! Please bear with the hiccups.
With all of that said:
28
Use the Extenuating Circumstances form!
We welcome feedback at any time about the course. Contact course staff at data101@berkeley.edu or stop by office hours.
One important note
There will be no class next week (at VLDB in London)
I will instead teach tomorrow (Friday) at Pimentel 1 (note new location) from 7-10pm - the only time available 😭. Please attend! As always, lectures will be recorded.
And we’ll be back to regular location/time the week after that.
29
TODO by Tomorrow: Brush up on SQL!
30
31
Data Engineering: What? Why?
Course Trajectory
Course Logistics
Data System Paradigms
Outline
Demystifying Industry Jargon
32
(the same VC who made the MAD Landscape diagram)
Data systems are tools that support data engineering.
What you mostly learn at Berkeley (eg. DATA 100)
Raw Data
Transactions
Sensors
Log Files
Experiments
Use-Case-Specific
Fit for purpose
Self-Service
Data Preparation
Data preparation example: Research experiments
“Experts are close to the data and should be the ones extracting / analyzing”
Alternative picture, but more traditional enterprise
Raw Data
Transactions
Sensors
Log Files
Experiments
Use-Case-Specific
Fit for purpose
Self-Service
Data Preparation
Source of Truth
Governed
Secure
Audited�Managed
Data Integration
Data Integration example: UC Berkeley data (contracts, student info, grants, etc…) – must be centrally managed
“Compute is expensive, data is precious”
How this actually happens? E, T, and L
Extract: Scrape raw data from all the source systems, e.g., transactions, sensors, log files, experiments, tables, bytestreams, …
Transform: Apply a series of rules or functions, wrangle data into schema(s)/format(s)
Load: Load data into a data storage solution
35
Traditional Single Source of Truth: Data Warehouses - through ETL
Data Warehouse
Data Integration
Extract
Transform
Load
Extract or scraping from API or log file, transform into common schema/format, load in parallel to “data warehouse”
Raw Data
Transactions
Sensors
Log Files
Experiments
Source of Truth
Governed
Secure
Audited�Managed
Entire organizations centered around this ETL process!
ELT for Data Warehouses: A Newer Picture (e.g. Original Snowflake)
Data Integration
Load
Transform
Extract
Load without doing a lot of transformation, with transformations done in SQL
Faster to get going, and more scalable, but requires more data warehousing knowledge (& may be more expensive).
Data Warehouse
Raw Data
Transactions
Sensors
Log Files
Experiments
Source of Truth
Governed
Secure
Audited�Managed
From Warehouses → … Lakes??? 💦
Data Warehouses are expensive
What about skipping the “data warehouse” entirely?
No Loading! Just “dump” the data in
Let’s be …agile…
Enter the data lake
[Editorial note: Try not to make too much sense of why these terms came to be. Often just marketing…]
ET? For Data Lakes?
39
Extract
Transform
Data Preparation
Data Lake
Use-Case-Specific
Fit for purpose
Self-Service
(joke)
Raw Data
Transactions
Sensors
Log Files
Experiments
No need to “load/manage” data
Data is dumped in cheaply and massaged as needed for various use-cases
Usually code-centric (Spark)
Why go through all this trouble?
Once data is “lost” (i.e. not saved, deleted, etc) it cannot be recovered. So record everything.
Can’t predict when a particular measurement will be crucial to understanding some situation.
How do you know something improved if you cannot measure change?
40
The Two Extremes
Data Lake, ~2010s
Data Warehouse, ~1990s
Modern solution is likely Many-to-Many, ETLT
42
Data Lake
Extract
Load
Transform
Transform
Transform
Data Preparation /
Integration
Data Warehouse
Raw Data
Transactions
Sensors
Log Files
Experiments
Source of Truth
Governed
Secure
Audited�Managed
Use-Case-Specific
Fit for purpose
Self-Service
Sometimes start with a data lake
Empower data scientists to work on ad-hoc use cases
Allow for datasets that “graduate” to a carefully managed warehouse
Some datasets may directly be loaded into a data warehouse
This class will focus a lot on T: Transform
A Modern Buzzword for the Modern Solution: A Data Lakehouse (2020)
43
44
…but that was just the beginning….
As we move away from a “managed” data warehouse, there are other considerations we need to worry about …
Important considerations
Data Discovery, Data Assessment
Metadata
Dynamic Aspects: Operationalizing, Feedback
Data Quality & Integrity
Modern solutions
46
Data Lake
Data Preparation /
Integration
Data Warehouse
Raw Data
Transactions
Sensors
Log Files
Experiments
Source of Truth
Governed
Secure
Audited�Managed
Use-Case-Specific
Fit for purpose
Self-Service
Data Discovery & Assessment
Data Quality�& Integrity
Metadata�Store
TL;DR: Governance vs. Agility
Returning to the warehouse/lake/lakehouse question (or alt., the code/query-centric question)
There is always a tradeoff: Governance vs. Agility
Varies across organizations, people, …
Many tools focus on one point in this spectrum, but most mature tools can support any philosophical mix.
Finally, themes for the semester
Data Models: found and designed
Data Assessment, Quality, Integrity
Data Transformation
Serving multiple tasks and personas
Automation