Documentation Index
Fetch the complete documentation index at: https://domoinc-arun-raj-connectors-domo-479695-remove-crime-report.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Intro
A “recursive” or “snapshot” DataFlow is a DataFlow that uses itself as an input. DataFlows (both SQL and Magic ETL) cannot append data natively like Connectors. However, if you need to create a DataFlow that appends data, you can do so by running it once and then using the output as part of the input for the next run. By doing this, every time the DataFlow runs, it includes the data from before and also appends the new data onto itself. Video - What is a Recursive DataFlow?To create a recursive DataFlow in Magic ETL:
- Create and run a Magic ETL DataFlow.
2. Once the DataFlow has finished running, load the output DataSet as an input DataSet.
The Output tile will show the output DataSet name followed by “1.”
You should now have two DataSets in the DataFlow—the updating original DataSet and the historical DataSet.
You now need to find a column to use as a constraint. This helps determine when to replace data in your historical DataSet with new data. Constraint columns are normally ID columns or date columns or have other unique identifiers. In this example, we use theDatecolumn as a constraint. - Use Select Columns to select only the constraint column.
4. Use Remove Duplicates to return a unique list of constraints.
6. Filter any rows from your DataSet where the new date column is not null.This returns only rows from the historical DataSet that do not exist in the new updating DataSet. You can do this by adding a Filter Rule or by adding a Formula Rule as shown in the examples below.
Add Filter Rule:Make sure not to forget to choose how you would like the data to be handled if the data types don’t match between columns that should be combined. For more information about this option you can find it here under the “Append Rows (Union)” section: Behavior Changes and Feature Updates in Magic ETL.
9. Connect the Append tile to your output. Once complete, your ETL should look like the following: