Skip to content

fix(retl-runner): accept objectMappings in prepareSource mirror preflight - #1592

Merged
absorbb merged 4 commits into
jitsucom:newjitsufrom
shafiktanbir:patch-1
Oct 26, 2026
Merged

absorbb merged 4 commits into
jitsucom:newjitsufrom
shafiktanbir:patch-1

Conversation

@shafiktanbir

@shafiktanbir shafiktanbir commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1591

In 3e2d0c8f (#1590), validateReverseEtlConfig and runSnapshotMirror were updated to support destination fields composed via objectMappings, and prepareSource (services/retl-runner/src/source-preflight.ts) was updated on lines 48 and 55 to use mappedColumns(config.options) and mapReverseRow(row, config.options).

Line 45 of prepareSource still checked Object.keys(config.options.mapping).length > 0, throwing "Invalid mirror mapping" when destination fields are mapped via objectMappings and mapping is {}. This updates line 45 to check ensure(mappedColumns(config.options).length > 0, "Invalid mirror mapping").

ss
Image

@jitsu-code-review jitsu-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of 67d3d030791cfa37787ef1d9eea3fbd542017b21

Reviewed the full diff and traced mapping validation, snapshot replay, and checkpoint behavior. No high-confidence defects found. Tests were not run because dependencies and pnpm are unavailable.

@absorbb
absorbb merged commit d724d8c into jitsucom:newjitsu Oct 26, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

retl-runner: prepareSource rejects mirror syncs mapped exclusively via objectMappings

2 participants