SQL Transformations
Transformations allow logic to be executed against a target connection based on a scheduled frequency or triggered event of new data on tables updated via DataLakeHouse.io (DLH.io):
- Add a Transformation
- Pre-SQL Transformations
- SQL Transformations
- Click on Transformation from the header menu
- Click on New Transformation or Add a Transformation to show the Transformation creation form.
- Update the form and determine what options to select.
Adding a new transformation, be sure to complete all the required details
Pre-SQL transformations are unique to DLH.io where provide the ability to reference the in stream data (data streaming per each synchronization frequency) against the existing raw data landing zone.
This is a perfect use case for conceptual ideas such as refunds, chargebacks, employee punches, etc.
This option is available by selecting the Transformation Type in the transformation area.
See also Employee Pay Summary for example of using Pre-SQL logic.
SQL transformations are unique to DLH.io where provide the ability to reference the in stream data (data streaming per each synchronization frequency) against the existing raw data landing zone. This type of Transformations runs as the step in the Sync Bridge execution.
While a tool such as dbt Cloud, Dataform or Coalesce.io can do these light transformations, DataLakeHouse.io can as well.
In the example below, a Sync Bridge is syncing a Google Sheet into Snowflake. In order to control the column data types in Snowflake, a Transformation is created to drop the CONTACTS_NEW table at the end of each Sync Bridge run and then a CTAS is executed to create the CONTACTS_NEW table with the desired column data types.
The text of the Script in the above image is below for easy reference: