This gem runs in .
Supported file formats
Create an ADLS gem
To create an ADLS Source or Target gem in your pipeline:1
Add a Source or Target gem to the pipeline
- Open your pipeline in the Studio.
- Click on Source/Target in the canvas.
- Select Source or Target from the dropdown.
- Click on the gem to open the configuration.
2
Select ADLS format
In the Type tab, select ADLS. Then, click Next.
3
Set location details
In the Location tab, set your file format and connection details. To learn more, jump to Source location and Target location.
4
Set file properties
In the Properties tab, set the file properties. These vary based on the file type that you are working with.
See the list of properties per file type, such as CSV.
5
Preview data (Source only)
In the Preview tab, load a sample of the data and verify that it looks correct.
Source location
When setting up an ADLS Source gem, you need to decide how Prophecy should locate files at runtime. There are two modes:- Filepath: Always read from a specific file path. You can use wildcards in your path definition. If multiple files match, they are unioned into a single output table.
- Configuration: Dynamically read files provided by a file arrival/change trigger in the pipeline’s schedule. When new or updated files are detected in the monitored directory, the trigger starts the pipeline and passes those files to the ADLS Source gem, which unions them into a single output table.
| Parameter | Description |
|---|---|
| Format type | Type of file to read, such as csv or json. |
| Select or create connection | Select an existing ADLS connection or create a new one. |
| Choose Path or Configuration | Choose between the following options.
|
| Filepath Filepath option only | Path to the file in the ADLS container. Supports wildcards. Example: abfss://container-name@account-name.dfs.core.windows.net/temp/dir/*.csv |
| Select Configuration Configuration option only | File arrival/change trigger configuration that provides the added or modified files for that run. |
| Include filename Column | Appends a column containing the source filename for each row in the output table. |
| Delete files after successfully processed | Deletes objects after they are successfully read. |
| Move files after successfully processed | Moves objects to a specified directory after they are successfully read. |
Configuration
If you select Configuration, the gem will only run successfully during a triggered pipeline run. This is because the gem expects files from the trigger. In other cases, such as an interactive run or an API-triggered run, there will be no files to read. In these situations, you will encounter the following error:Target location
When setting up an ADLS Target gem, you need to set the location and file type to correctly write the file.| Parameter | Description |
|---|---|
| Format type | Type of file to write, such as csv or json. |
| Select or create connection | Select an existing ADLS connection or create a new one. |
| Filepath | ADLS path where the output file will be written. Example: abfss://container-name@account-name.dfs.core.windows.net/data/orders.csv |

