Sequential Table Join

GX-TXT DEV112 P011-bis

Join tables in sequence and check keys, rows and variables of the resulting dataset.

Enable the module and generate the two segments

In Configuration → Modules → Analysis & Services search for Sequential Table Join (sequence.table_join). If it is off press Enable module. In Analysis select Run / recalculate now when you have set sources and output. In New Session → Generate Session… uses Sequential Join and Dataset Extract (table_join_extract, 1.0.1) in the public catalog. Keep Standalone Session, give it a name and press Generate Session.

The tested Generator creates the files raw/early_segment.csv, raw/late_segment.csv and the canonical Datasets table_segment.early, table_segment.late. In Dataset → Preview and Open Dataset → Canonical table check the three columns. timestamp_s and time_s are expressed in seconds, value_V in volts. The measurements are synthetic.

Public Generator for the two transformation modules.
Public Generator for the two transformation modules.
Initial segment with absolute time, relative time and measurement.
Initial segment with absolute time, relative time and measurement.

Assign the sources and check the schema

In Dataset sources choose table_segment.late for primary. Add table_segment.early with + Add source if it is not already there. Assign a distinct Source ID , for example early_segment. To change the group use Remove on the additional sources. The row primary is mandatory.

At least two Datasets are needed timeseries.table with columns in the same order and compatible metadata. The timestamps must be finite, strictly increasing within the segment and without overlaps between segments. An exact repetition at the boundary already counts as an overlap. The module orders the segments by their first real timestamp, so the example deliberately selects the late segment first. A gap stays in the product without interpolation.

Set absolute time, relative time and output

Control
Output Dataset ID
Effect
Factory default sequence.joined. The Generator sets table_joined.source. It is the name to use in Dataset Extract or Scientific Dataset Plot.
Control
Absolute time column
Effect
Initially timestamp_s. Use the name of the absolute column, common to all segments. The local relative time can restart from zero and is not used to order the blocks.
Control
Global relative-time column (blank = preserve input unchanged)
Effect
Initially time_s. For each row it assigns the absolute timestamp minus the first timestamp of the join. If the name is not in the schema it adds a column. Leave it empty to keep the values of all the original columns, including those of time_s.
Late segment as primary, initial segment as additional source and rebuilt relative time.
Late segment as primary, initial segment as additional source and rebuilt relative time.

Run and check the time gap

Tick Run / recalculate now and check the two inputs in the plan of Run. Press Run enabled analyses. After completion, in Results open join_report.txt to check the effective order, the intervals and the time distances. Enable table_joined.source in Dataset. Use Metadata, Technical Details / Provenance and Open Dataset → Canonical table to check identity and content. The two inputs stay registered with their own IDs.

The output has 200 rows. It runs from 0 to 299 s, and between the samples at 99 and 200 s the interval is 101 s. If you choose time_s, the row of the first late sample shows 200 s in the global relative time too. With the relative field empty it keeps 0 s in the same row. The module produces the Dataset and the report. To see the gap on a plot use Scientific Dataset Plot.

Canonical table published with 200 rows and the provenance check.
Canonical table published with 200 rows and the provenance check.

Keep the results of two configurations

In the tested version, a new join with a different ID in the same Session can overwrite the CSV of the first result (bug 148). Both IDs stay visible, but the first one can give payload SHA-256 mismatch when you open it with Scientific Dataset Plot. Complete the extraction on the first result before the variant. To keep two joins, repeat the Generator with two Session names. You can restore the desired Dataset by redoing the last join with its own ID and the intended configuration.

Rejection of the first join’s tracking after a second publication with a different ID.
Rejection of the first join’s tracking after a second publication with a different ID.