MergeData
Type:
merge-data
• Category:flow
Description
Marge data from tables or strings to one table.
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
table-1 | string | no | ||
table-2 | string | no | ||
table-3 | string | no | ||
table-4 | string | no | ||
table-5 | string | no | ||
table-6 | string | no | ||
table-7 | string | no | ||
table-8 | string | no |
Help
Overview
The MergeData worker consolidates up to eight separate data sources—each supplied as a table name, a JSON‑encoded string, or a plain string—into a single result dictionary. It intelligently parses JSON strings, skips empty inputs, and merges any nested tables that already contain keys from the same set. The final output always contains a data
field, ensuring downstream processes have a consistent entry point.
Input Parameters
Parameter | Type | Description |
---|---|---|
table-1 | string | First table or JSON string to merge. |
table-2 | string | Second table or JSON string to merge. |
table-3 | string | Third table or JSON string to merge. |
table-4 | string | Fourth table or JSON string to merge. |
table-5 | string | Fifth table or JSON string to merge. |
table-6 | string | Sixth table or JSON string to merge. |
table-7 | string | Seventh table or JSON string to merge. |
table-8 | string | Eighth table or JSON string to merge. |
All parameters are optional; any missing or empty value is ignored.
How It Works
- Iterate over the predefined key list (
table-1
…table-8
). - Retrieve the supplied value for each key. If the value is
None
or an empty string, the worker moves to the next key. - Attempt JSON decoding when the value is a string. If decoding succeeds, the parsed object replaces the original string; otherwise, the original string is kept unchanged.
- Detect nested tables: if the parsed object is a dictionary that already contains any of the
table-*
keys, its contents are merged directly into the final result. - Otherwise, the worker stores the processed value under its original key in the result dictionary.
- Return the aggregated dictionary. The structure guarantees that a
data
entry is always present, either as a direct value or as part of a nested table.
The worker thus provides a reliable way to combine heterogeneous table inputs into a single, well‑structured dictionary ready for further financial market or data analysis.