Skip to main content

MergeData

Type: merge-data • Category: flow

Description

Marge data from tables or strings to one table.

Parameters

NameTypeDescriptionRequiredDefault
table-1stringno
table-2stringno
table-3stringno
table-4stringno
table-5stringno
table-6stringno
table-7stringno
table-8stringno

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

ParameterTypeDescription
table-1stringFirst table or JSON string to merge.
table-2stringSecond table or JSON string to merge.
table-3stringThird table or JSON string to merge.
table-4stringFourth table or JSON string to merge.
table-5stringFifth table or JSON string to merge.
table-6stringSixth table or JSON string to merge.
table-7stringSeventh table or JSON string to merge.
table-8stringEighth table or JSON string to merge.

All parameters are optional; any missing or empty value is ignored.

How It Works

  1. Iterate over the predefined key list (table-1table-8).
  2. Retrieve the supplied value for each key. If the value is None or an empty string, the worker moves to the next key.
  3. 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.
  4. 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.
  5. Otherwise, the worker stores the processed value under its original key in the result dictionary.
  6. 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.