Transform¶
A transform action sits between a load and a write, reshaping the rows that
flow through. Pick the transform type by what you’re doing to the data.
You want to… |
Reach for |
Guide |
|---|---|---|
Filter, join, or reshape with a query |
A SQL transform |
|
Do something SQL can’t express cleanly (loop over columns, call a library) |
A Python transform |
|
Rename and cast columns to a target schema |
A schema transform |
|
Stage an intermediate result the rest of the flow reads |
A temp table |
|
Drop rows that fail expectations |
A data-quality transform ( |
|
Keep failed rows for inspection and recycling instead of dropping them |
A data-quality transform in quarantine mode |
Note
Data quality has two homes. A data_quality transform gates rows inside a
flow (drop or quarantine). To assert a standalone property — uniqueness, a row
count, referential integrity — as a unit test for your data, use a
test action instead.