Migrate Legacy Pipelines to Singdata Lakehouse
Map legacy ETL to Bronze, Silver, and Gold tables in Singdata Lakehouse. Follow a migration plan with SQL checks, CDC settings, and rollback criteria.
Move one business pipeline at a time to Singdata Lakehouse. Keep a replayable record in Bronze, apply data contracts in Silver, and serve validated business metrics from Gold. Cut over only after the new path reconciles with the legacy output under live traffic.
Map legacy jobs to Lakehouse layers
Legacy component | Lakehouse target | Migration acceptance check |
|---|---|---|
Nightly extract or CDC feed | Bronze schema with source records and ingestion metadata | Source counts and checkpoint coverage reconcile |
Deduplication and cleansing scripts | Silver schema with key and type rules | No duplicate keys at the declared grain; deletes behave as designed |
Reporting marts | Gold facts and dimensions | Revenue and other agreed metrics reconcile by business day |
Scheduler and recovery scripts | Ingestion checkpoints, transformation dependencies and refresh monitoring | Restart or replay does not duplicate a load |
For the object structure, see the Lakehouse object model. The documented Databricks-to-Lakehouse migration shows how a CRM and ERP model is mapped into dimensions and a sales fact table.
Move an order pipeline in four steps
Inventory the source order key, timestamp and timezone, the delete policy, and the existing reporting day boundary. Capture a snapshot and the matching log checkpoint using the connector's supported snapshot-to-CDC procedure. Set retention so the logs cover backfill and cutover.
Land the extract in Bronze. Preserve the source key, operation type, source sequence or log position, and ingest timestamp where the connector exposes them. Keep invalid keys in a separate review path. Define how replay and late updates are handled before you transform data.
Build Silver at one row per order. Deduplicate by source ordering, apply deletes per your connector semantics, and make the Gold fact grain explicit. Run the following on Silver before switching any BI connection; a passing result has no rows.
SELECT order_id, COUNT(*) AS row_count
FROM silver.orders
GROUP BY order_id
HAVING order_id IS NULL OR COUNT(*) > 1;Run both systems in parallel through a peak period and a replay test. Compare order counts, sums and refunds by business date, including late-arriving changes. Example cutover criteria: zero key violations, zero unexplained revenue difference, and freshness within the agreed SLA. Switch one consumer first. Keep the legacy endpoint and checkpoint until rollback has been tested.
Review how to measure Lakehouse freshness before choosing refresh targets, and use Lakehouse pricing to budget for the parallel run on Singdata.
FAQ
Do I have to rewrite all Spark jobs at once?
No. Start with one bounded pipeline; test SQL dialect, UDF, dependency and connector compatibility before moving the rest.
Should Bronze include rejected rows?
Keep a governed record or quarantine path where policy permits so you can diagnose and replay rejected inputs.
How do I test deletes and late updates?
Replay known inserts, updates, deletes and out-of-order records in staging. Compare the final Silver state and Gold totals with expected results.
When can I turn off the legacy jobs?
After acceptance checks pass and owners sign off on the rollback window, checkpoints and retention policy.