Presets¶
A preset is a YAML file in the project’s presets/ directory that supplies
default configuration merged into actions by type. A flowgroup or template
applies presets by listing their names under presets:; presets are merged in
list order. A preset file has the shape:
name: <preset_name>
version: "1.0"
extends: <parent_preset_name>
description: <text>
defaults:
load_actions:
<source_type>:
...
transform_actions:
<transform_type>:
...
write_actions:
<target_type>:
...
See also
Concept: Choosing a reuse tool.
Top-level fields¶
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
Yes |
— |
Preset identifier. Flowgroups and templates reference the preset by this name. |
|
string |
No |
|
Version string for the preset. |
|
string |
No |
— |
Name of a parent preset. This preset’s |
|
string |
No |
— |
Free-text description of the preset. |
|
mapping |
No |
— |
Default configuration keyed by action type (see below). |
defaults keys¶
Each key under defaults supplies defaults merged into matching actions by
their type and sub-type.
Key |
Matches |
Merge target |
|---|---|---|
|
Load actions whose |
Deep-merged into the action’s |
|
Transform actions whose |
Merged into the action’s top-level fields. |
|
Write actions whose |
Deep-merged into the action’s |
|
The flowgroup itself. |
Each key sets a flowgroup-level field default. |
Example¶
name: bronze_defaults
version: "1.0"
description: "Standard bronze-layer defaults"
defaults:
load_actions:
cloudfiles:
options:
cloudFiles.schemaEvolutionMode: addNewColumns
write_actions:
streaming_table:
table_properties:
quality: bronze
A preset may build on another with extends:
name: bronze_cloudfiles
version: "1.0"
extends: bronze_defaults
defaults:
load_actions:
cloudfiles:
options:
cloudFiles.maxFilesPerTrigger: 200