Week 11: ETL Pipelines and Vector Databases
DSAN 6000: Big Data and Cloud Computing
Fall 2026
Pipelines for Triggered Execution
…HEY! WAKE UP! NEW DATA JUST CAME IN!

You before this week:
- Sprint to your
.ipynband/or Spark cluster - Load, clean, process new data, manually, step-by-step
- Email update to boss

You after this week:
- Asset-aware pipeline automatically triggered
- Airflow orchestrates loading, cleaning, processing
EmailOperatorsends update

Pipelines vs. Pipeline Orchestration

Key Airflow-Specific Buzzwords
(Underlined words link to Airflow docs “Core Concepts” section)
Directed Acyclic Graph (
DAG): Your pipeline as a whole!DAGs consist of multipletasks, which you “string together” using the control flow operators>>and<<[Ex ]
second_task,third_taskcan’t start untilfirst_taskcompletes:first_task >> [second_task, third_task] # Equivalent to: first_task.set_downstream([second_task, third_task])[Ex ]
fourth_taskcan’t start untilthird_taskcompletes:fourth_task << third_task # Equivalent to: fourth_task.set_upstream(third_task)What kinds of
tasks can we create? Brings us to another concept…
Operators: What Kind of task?
- “Core”
Operators:BashOperatorandPythonOperator
- + Hundreds of “community provider”
Operators: HttpOperatorS3FileTransformOperatorSQLExecuteQueryOperatorEmailOperatorSlackAPIOperator
+ Jinja templating for managing how data “passes” from one step to the next:
Task vs. Operator: A Sanity-Preserving Distinction
From Operator docs:
When we talk about a
Task, we mean the generic “unit of execution” of aDAG; when we talk about anOperator, we mean a [specific] pre-madeTasktemplate, whose logic is all done for you and that just needs some arguments.
Task:
Operator:


Concepts \(\leadsto\) Code
start-airflow.sh
airflow db migrate
airflow api-server --port 8080
airflow scheduler
airflow dag-processor
airflow triggerer- Full Airflow “ecosystem” is running once you’ve started each piece via above (
bash) commands! - Let’s look at each in turn… (Optional) Bonus slides!

The Payoff: Downstream Consumers Can Establish Their Own Triggered Execution(s)!

What are we Loading Into?
Our Working ETL Example
- Extract text from OLTP, Transform by embedding into semantic vector space
- Load into… OLAP DB, but what kind? Data Lake? ❌ Warehouse? ❌
| name | message | embedding | label | |||
|---|---|---|---|---|---|---|
| dim1 | dim2 | \(\cdots\) | dim3072 | |||
| Fangzhou | card broke in half |
[0.8723 |
0.7536 |
\(\cdots\) | 0.8022] |
card_issue |
| Samyu | accidentally folded card into möbius strip, cant figure out which part is the back |
[0.1296 |
0.5923 |
\(\cdots\) | 0.1105] |
NA (❓) |
| Jeff | off the lean in italy like i was pisa, put it on the mastercard, already owe visa |
[0.2399 |
0.0656 |
\(\cdots\) | 0.0967] |
rapping |
- In fact, none of the approaches thus far (whether OLTP or OLAP) are very helpful for this case: “standard” tabular storage fails to capture spatial structure…
Intuition: …Why Did We “Split” OLAP from OLTP in the First Place?
The answer: Different use cases \(\Rightarrow\) Optimizing for different “critical operations”
OLTP
- Optimized for rapid insertion
- Ex: Append-only logs, website events, sensor readings
- …Vector DBs? ❌ Not typically a critical operation (vectors can be inserted offline/overnight at pace chosen by engineers)
OLAP
- Optimized for rapid vectorized columnar computations (across many observations at once)
- Ex:
(df['y'] - df['yhat'])^2 - Vector DBs? ❌ Each observation has not 1 but (say) 3,072 non-independent attributes; a single column
Now We Put These Embeddings (Vectors) into Databases
- The goal: identify similar object as vectors “close to” the location (in vector space) of a given query
Vector Search Workflow
Unstructured Data \(\leadsto\) Structured Geometric Query Space


More Data \(\leadsto\) “Increasing Returns”



Queries Embedded via the Same Model!

In-Class Demo: Vector DBs
[https://github.com/jpowerj/dsan6000-vectordb-demo}{.boxed-cb}

