Skip to content

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

Closed

Description

@shafiktanbir

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?

ss
Image

Activity

  1. added a commit that references this issue on Oct 26, 2026
    d724d8c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions