5 min readUpdated Mar 2, 2026

UnionNodeEditor Documentation

Overview

The UnionNodeEditor is a specialized component within the Vantage analytics platform used to merge two datasets, allowing users to define how data from the second input should be combined with the first. This editor facilitates the mapping of columns from Input 2 to the corresponding columns in Input 1, ensuring that data correctly aligns when combined. Users can also choose various settings related to how the data is processed, such as keeping duplicates or applying sorting.

Purpose

The primary function of the UnionNodeEditor is to provide users the flexibility to combine datasets efficiently while maintaining control over which columns are merged, whether duplicates are allowed, and how the resulting data should be sorted. This helps in data preparation tasks, particularly in ETL (Extract, Transform, Load) processes.

Settings

1. Union Mode

2. Deduplicate Keys

3. Sort Column

4. Sort Direction

5. Column Mappings

6. Selected Columns

How It Works

The UnionNodeEditor operates by leveraging systems of memoization to analyze and update data reactively. When configured settings are changed, the component re-evaluates the previews of both input datasets as well as the output dataset. This allows users to visualize how their configuration will affect the combined output before the actual operation is executed.

The component fetches the most recent preview results from a shared context, analyzes the upstream input datasets, and exposes functionality for mapping columns, selecting which columns to include in the output, toggling deduplication options, and applying sorting.

Data Expectations

The UnionNodeEditor expects two input datasets, referred to as Input 1 and Input 2. Each dataset should ideally consist of rows formatted as objects with consistent column names, allowing for accurate merging and mapping. The editor requires an understanding of which columns should correspond across datasets when merging.

Use Cases & Examples

Use Case 1: Merging Sales Data from Two Regions

A company operates in two regions and collects sales data separately. The UnionNodeEditor can be used to merge these datasets while maintaining the option to remove duplicate entries for the same product.

Use Case 2: Combining Customer Feedback from Different Sources

A business collects customer feedback from multiple platforms. By using the UnionNodeEditor, they can combine this data into a single dataset to conduct a comprehensive analysis.

Example Configuration

Use Case: A company merges sales data from two regions while keeping all entries to analyze total sales.

Sample Configuration Data

json
{
    "unionMode": "all",
    "deduplicateKeys": [],
    "sortColumn": "saleDate",
    "sortDirection": "asc",
    "columnMappings": {
        "salesAmount": "amount",
        "productID": "product_id"
    },
    "selectedColumns": ["salesAmount", "productID"]
}

In this example: