Temporary table (temp_table)¶
Materializes an intermediate temporary table via @dp.table(temporary=True),
cleaned up when the pipeline run completes.
Minimal example¶
Add this entry to the actions list in your flowgroup.
- name: stage_orders
type: transform
transform_type: temp_table
source: v_orders
target: tmp_orders
sql: "SELECT * FROM v_orders WHERE status = 'open'"
Options¶
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string / dict |
Yes |
— |
Input view name (string), or a dict with a |
|
string |
No |
— |
Optional query. Use the input view name in the query. Without |
|
string |
No |
|
|
The normal CLI resolves substitution tokens before this generator runs. A bare
{source} in SQL is treated as a substitution token and fails validation if
no such token is defined; use the view name or a defined ${token} instead.
Common fields¶
Fields accepted by every transform_type. Type-specific fields are listed in
the options above.
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
Yes |
— |
Action name, unique within the flowgroup. |
|
string |
Yes |
— |
Always |
|
string |
Yes |
— |
One of |
|
string |
Yes |
— |
Name of the produced view (or temporary table). Required for all transforms. |
|
string / list / mapping |
Yes |
— |
Upstream view name(s). Accepted shape and requirement vary per type — see this type’s options. |
|
string |
No |
auto |
Comment on the generated view/table. Defaults to an auto-generated string. |
|
bool / list |
No |
— |
Add operational metadata columns; a list selects column names. Honored by |
|
list |
No |
— |
Extra upstream table or view references added to the dependency graph. See Dependency analysis reference. |