On this page
Auto Loader (cloudfiles)¶
YAML location: an entry in a flowgroup’s actions list.
Source selector: source.type: cloudfiles.
Streams files into a temporary view via Databricks Auto Loader. Fields live
under source:.
Minimal example¶
Add this entry to the actions list in your flowgroup.
- name: load_orders
type: load
source:
type: cloudfiles
path: "${landing_volume}/orders/*.json"
format: json
target: v_orders_raw
Source fields¶
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
Yes |
— |
Must be |
|
string |
Yes |
— |
File path or glob to ingest. |
|
string |
Yes |
— |
File format; feeds |
|
mapping |
No |
— |
|
|
mapping |
No |
— |
Options merged verbatim into the reader. |
|
mapping |
No |
— |
Options prefixed with |
|
string or mapping |
No |
— |
Schema-file path, or |
|
string |
No |
— |
Back-compat schema-file path. |
readMode must be stream (batch is rejected). Legacy scalar options
(schema_location, schema_infer_column_types, max_files_per_trigger,
schema_evolution_mode, rescue_data_column) are accepted for
back-compat but are superseded by options.
Read mode placement¶
Prefer action-level readMode alongside source and target.
The generator also accepts source.readMode as a fallback. An action-level
value takes precedence when both are supplied.
Action-level fields¶
These fields apply to every load sub-type. name, type, source and target are required.
Field |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
Yes |
— |
Unique action name within the flowgroup. |
|
string |
Yes |
— |
Always |
|
mapping |
Yes |
— |
Source configuration. |
|
string |
Yes |
— |
Name of the temporary view this action creates. |
|
string |
No |
sub-type |
|
|
string |
No |
auto |
Docstring for the generated view function. |
|
bool or list[string] |
No |
— |
Explicit column names to add; action-level |
|
list[string] |
No |
— |
Extra upstream table or view references added to the dependency graph. See Dependency analysis reference. |
See the worked guide or choose another load source.
Reader options are open-ended mappings. For the full Databricks option set, see Spark API options.
Option precedence¶
LHP processes options first, then merges reader_options, then
format_options (prefixing keys with the file format when needed). Later
mappings overwrite the same emitted option. Legacy scalar option fields fill
only options that have not already been supplied. cloudFiles.format defaults
to source.format when it is absent from the options.