You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
retl-runner: prepareSource rejects mirror syncs mapped exclusively via objectMappings #1591
In commit 3e2d0c8f (#1590), Reverse ETL added support for composing destination object fields via objectMappings in validateReverseEtlConfig and runSnapshotMirror.
In services/retl-runner/src/source-preflight.ts, prepareSource uses mappedColumns(config.options) on line 48, but line 45 still checks ensure(Object.keys(config.options.mapping).length > 0, "Invalid mirror mapping"), which throws "Invalid mirror mapping" when fields are mapped via objectMappings and mapping is {}.
Should line 45 check ensure(mappedColumns(config.options).length > 0, "Invalid mirror mapping") instead?
Activity
fix(retl-runner): accept objectMappings in prepareSource mirror prefl…