MERGE TWO KEYVALUES¶
Merges two key-value maps into a single combined key-value output. Keys from the second map (Keyvalue to Merge) take precedence over matching keys in the base map. Use this worker to consolidate or override configuration parameters within a workflow.
When to use¶
Classification: process.
Tagged: combine, dictionary, keyvalue, map, merge, parameters.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Keyvalue Base | keyvalue_base | keyvalue | — | The base key-value map that provides the starting set of key-value pairs; entries here may be overridden by matching keys in the merge input. Leave empty if there is no base context. | |
| Keyvalue To Merge | keyvalueto_mege | keyvalue | — | The key-value map to merge into the base; keys present in both maps will use the value from this input, effectively acting as an override or patch layer. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| keyvalue_merge_output_1 | keyvalue_merge_output_1 | keyvalue | The resulting merged key-value map containing all keys from both inputs, with values from ‘Keyvalue to Merge’ taking precedence where keys conflict. |
Disciplines¶
- data.dataset.transform
- platform.workflow
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=keyvalue_merge
Auto-generated from transformation schema. Worker id: keyvalue_merge. Schema hash: 8ce26d342f48. Hand-curated docs in workerexamples/ override this page when present.