Add Oracle → PostgreSQL DWH migration tool with daily GitHub Actions schedule#1
Draft
eng-dedalus with Copilot wants to merge 3 commits into
Draft
Add Oracle → PostgreSQL DWH migration tool with daily GitHub Actions schedule#1eng-dedalus with Copilot wants to merge 3 commits into
eng-dedalus with Copilot wants to merge 3 commits into
Conversation
… schedule Agent-Logs-Url: https://github.com/eng-dedalus/test/sessions/7f993e48-6f10-4fe2-9101-17b4a0803c20 Co-authored-by: eng-dedalus <260377058+eng-dedalus@users.noreply.github.com>
Agent-Logs-Url: https://github.com/eng-dedalus/test/sessions/7f993e48-6f10-4fe2-9101-17b4a0803c20 Co-authored-by: eng-dedalus <260377058+eng-dedalus@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add DWH migration tool from Oracle to Postgres
Add Oracle → PostgreSQL DWH migration tool with daily GitHub Actions schedule
Apr 1, 2026
eng-dedalus
approved these changes
Apr 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a Python-based ETL tool to migrate tables from an Oracle DWH to PostgreSQL, schedulable daily via GitHub Actions.
Core modules
migrate.py– entry point; streams rows from Oracle in configurable batches usingoracledb, bulk-inserts into PostgreSQL viapsycopg2.extras.execute_values; supportsfull(truncate+reload) andincremental(append) modes plus--dry-runtype_mapping.py– Oracle → PostgreSQL type conversion;NUMBER(p,0)maps toSMALLINT/INTEGER/BIGINT/NUMERICby precision; falls back toTEXTfor unknown typesconfig.py– all connection params and tuning knobs (PG_SCHEMA,MIGRATION_MODE,MIGRATION_BATCH_SIZE, …) via env vars; no credentials in sourceGitHub Actions
daily_migration.yml– cron0 2 * * *;workflow_dispatchlets operators override table list, mode, and dry-run at trigger time; uses aproductionenvironment for secrets gatingci.yml– runspytest tests/on every push/PRUsage
Notable design choices
PG_SCHEMAis decoupled fromPG_USER; defaults topublicpermissions: contents: read(least privilege)Original prompt