DlcRequest to filter what gets loaded or to supply default values, among other uses:
- Filter what gets loaded
- Provide default values
Filter files to load
Files
Thefiles scope key allows a collection of files to be explicitly specified for loading.
By default, all files are loaded for every topic in the request, regardless of the topic’s file pattern.
To modify this behavior, set the apply-file-pattern key to true so that each topic in the request only loads files matching its file pattern.
Base directory resolution
Custom scope parameters can be used to dynamically define the base directory of a source. These parameters allow for flexible configuration by substituting placeholders in the directory path with actual values provided in the request.The keys
files and apply-file-pattern are reserved and cannot be used as custom scope parameters.- Placeholders in the path must start with
#{and end with}. - At request time, these placeholders are substituted with the corresponding values from the scope, and are blank if not provided.
Example
This source accepts anAS_OF_DATE scope parameter
AS_OF_DATE scope parameter to the base directory, and the data is then retrieved from
/base-dir/2021-01-01.
Provide default values
Column calculator
The scope parameters can be used in aCustomFieldDescription
Example
Target
The scope parameters can be used in aTargetDescription