Looking for the previous version? View v2024.06 documentation →
Query Chain Execution using Union Transformation
Overview
The Union transformation in a Query Chain combines records from two or more data streams into a single output, stacking rows vertically. This guide covers configuring a Union transformation with matching column schemas.
Prerequisites
- You are logged in to Data Trust with a Pro-User or Admin Pro-User role.
- A Query Chain with at least two data source widgets has been configured.
Steps
Path: Data Trust › Query Studio › Query Chain Execution using Union Transformation
Navigate to the Query Studio module and select Query Studio-Query Chain to open the Query Builder workspace. This is the starting point for creating, editing, and managing queries in Data Trust.
The Drag and Dop RDBMS widget from Query Chain create page is the main workspace for building and editing queries. Use the canvas to write SQL, add data sources, connect transformations, and configure output options.
Select the appropriate connection profile from the dropdown to link the query to its data source. Choosing the correct profile ensures the query reads from the intended database or system.
The Billing_Summary_Fact table from the Healthcare_DB schema panel manages the compute instances and processor configurations used for Query Chain execution. Configure Databricks or other processor types to enable distributed or push-down query execution for large datasets.
The Billing_Summary_Fact table-Click the Select button schema panel manages the compute instances and processor configurations used for Query Chain execution. Configure Databricks or other processor types to enable distributed or push-down query execution for large datasets.
The Transformations tab lists all available data transformation widgets — Filter, Projection, Aggregation, Join, Pivot, Unpivot, and more. Drag the required transformation onto the canvas and connect it between the data source and output widgets.
Drag the The Union Widget widget from the palette and drop it onto the Query Chain canvas. Once placed, click the widget to open its configuration popup and complete the required settings.
Drag the The Rdbms Widget From The Data Sources Tab widget from the palette and drop it onto the Query Chain canvas. Once placed, click the widget to open its configuration popup and complete the required settings.
Select the appropriate connection profile from the dropdown to link the query to its data source. Choosing the correct profile ensures the query reads from the intended database or system.
The Billing_Summary_Fact table-Healthcare_DB_Gold schema panel manages the compute instances and processor configurations used for Query Chain execution. Configure Databricks or other processor types to enable distributed or push-down query execution for large datasets.
This step shows Adding the pick table and Click the Select button in the Query Chain Execution using Union Transformation workflow. Follow the on-screen prompts to complete this configuration step before proceeding to the next stage.
Click Save to persist the query or configuration to the Query Explorer. A confirmation message appears once the save completes, and the query is available for reuse in Query Chains and scenarios.
The Join widget merges two data streams based on matching key columns, similar to a SQL JOIN operation. Select the join type (Inner, Left, Right, or Full) and map the key columns from both input streams.
Navigate to the Query Studio module and select Check the Remove duplicates option and Click the Select button to open the Query Builder workspace. This is the starting point for creating, editing, and managing queries in Data Trust.
The RD Output widget captures the final result set from the Query Chain for use in downstream processes. Configure the output name and format, then save the widget to make the results accessible to other scenarios and reports.
Drag the The Rd Output Widget And Double Tap On Rd Output Widget widget from the palette and drop it onto the Query Chain canvas. Once placed, click the widget to open its configuration popup and complete the required settings.
The RD Output widget captures the final result set from the Query Chain for use in downstream processes. Configure the output name and format, then save the widget to make the results accessible to other scenarios and reports.
Click Execute Now to run the query immediately and fetch the result set. The results appear in the Results tab, and the execution status is displayed in the progress indicator.
Click Execute Now to run the query immediately and fetch the result set. The results appear in the Results tab, and the execution status is displayed in the progress indicator.
Click Execute Now to run the query immediately and fetch the result set. The results appear in the Results tab, and the execution status is displayed in the progress indicator.