data management
slug: step-combineIntegrates multiple datasets into a single unified dataset using either vertical stacking (append) or relational joins. Provides flexible options for merging data from disparate sources.
datasets (array) - Datasets to combine with the base datasetmethod (string) - Combination method: append (default) or joinjoin_type (string) - For join method: inner, left, right, or full (default: inner)join_on (string|array) - Join key(s) or conditions:"customer_id" (assumes same column name in both datasets){"left": "id", "right": "customer_id"}[{"left": "id", "right": "customer_id"}, {"left": "region", "right": "territory"}]join_prefix (boolean) - Add dataset name prefix to columns to prevent conflicts (default: true)keep_duplicates (boolean) - For append method: keep duplicate records (default: true)strict_mode (boolean) - Throw exceptions on errors (default: false)preserve_types (boolean) - Maintain data types during combination (default: true)datasets parameterjoin_prefix: true, column names include dataset prefixescombineData_method - Method used (append or join)combineData_applied - Timestamp when operation was performedrecords_in - Number of records in the base datasetrecords_out - Number of records in the result datasetdatasets_combined - Number of datasets combinedFor append operations:
append_stats - Detailed statistics about the append operation:base_records - Count of records in base datasetdatasets_appended - Array of appended datasets with record countsFor join operations:
join_type - Type of join performedjoin_stats - Detailed statistics about the join operation:base_records - Count of records in base datasetjoins_performed - Array of join operations with before/after countscombine:
method: append
datasets:
- q1_sales
- q2_sales
- q3_sales
- q4_sales
keep_duplicates: false
combine:
method: join
datasets:
customers: customers_dataset
orders: orders_dataset
products: products_lookup
join_type: left
join_on:
- {left: "customer_id", right: "id"}
- {left: "product_id", right: "sku"}
join_prefix: true
Base Dataset (q1_sales) | quarter | region | product | revenue | |---------|--------|----------|---------| | Q1 | North | Widgets | 12500 | | Q1 | South | Gadgets | 8750 |
Additional Dataset (q2_sales) | quarter | region | product | revenue | |---------|--------|----------|---------| | Q2 | North | Widgets | 15000 | | Q2 | East | Gadgets | 11250 |
| quarter | region | product | revenue |
|---|---|---|---|
| Q1 | North | Widgets | 12500 |
| Q1 | South | Gadgets | 8750 |
| Q2 | North | Widgets | 15000 |
| Q2 | East | Gadgets | 11250 |
Base Dataset (orders) | order_id | customer_id | product_id | quantity | |----------|-------------|------------|----------| | 1001 | C123 | P456 | 2 | | 1002 | C789 | P345 | 1 |
Additional Dataset (customers) | id | name | segment | |-------|-------------|----------| | C123 | John Smith | Premium | | C789 | Sarah Jones | Standard |
join_prefix: true)| order_id | customer_id | product_id | quantity | customers_name | customers_segment |
|---|---|---|---|---|---|
| 1001 | C123 | P456 | 2 | John Smith | Premium |
| 1002 | C789 | P345 | 1 | Sarah Jones | Standard |