<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shivani Bahuguna  on Medium]]></title>
        <description><![CDATA[Stories by Shivani Bahuguna  on Medium]]></description>
        <link>https://medium.com/@bahugunashivani1?source=rss-12a8aec5ce93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cN80hzo7W67UpFQadXaa3Q.jpeg</url>
            <title>Stories by Shivani Bahuguna  on Medium</title>
            <link>https://medium.com/@bahugunashivani1?source=rss-12a8aec5ce93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:07:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bahugunashivani1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Migrating Informatica PowerCenter to Azure Databricks: A Practical Playbook]]></title>
            <link>https://medium.com/@bahugunashivani1/migrating-informatica-powercenter-to-azure-databricks-a-practical-playbook-e71dac0a56a9?source=rss-12a8aec5ce93------2</link>
            <guid isPermaLink="false">https://medium.com/p/e71dac0a56a9</guid>
            <category><![CDATA[data-migration-process]]></category>
            <category><![CDATA[pyspark]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[informatica]]></category>
            <dc:creator><![CDATA[Shivani Bahuguna ]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 15:24:59 GMT</pubDate>
            <atom:updated>2026-08-24T15:24:59.345Z</atom:updated>
            <content:encoded><![CDATA[<p>A condensed field guide for engineers and architects migrating Informatica PowerCenter to Azure Databricks including architecture mapping, transformation cheat sheet, the frameworks and mistakes that matter, distilled from real migration experience into what you need to decide fast.</p><blockquote><strong>Why Migrate</strong></blockquote><p>Informatica PowerCenter has run enterprise ETL for two decades on an on-premises, per-core-licensed, GUI-driven model. Azure Databricks replaces that with an elastic, code-first Lakehouse — one platform for ingestion, transformation, ML, and governance. This isn’t a lift-and-shift; it’s a re-platforming of how the data team works.</p><p>Why organizations make the move:</p><ul><li><strong>Cost:</strong> PowerCenter licensing is per-CPU-core plus 20–22% annual maintenance. Databricks’ consumption-based DBU pricing typically cuts TCO by 40–60%.</li><li><strong>Speed:</strong> PowerCenter’s Designer → Session → Workflow → deploy cycle adds latency. Notebook-based, cell-by-cell development cuts build time by 50–70%.</li><li><strong>Consolidation:</strong> One Lakehouse replaces separate ETL, warehouse, data science and orchestration tools.</li><li><strong>Open formats &amp; DevOps:</strong> Delta Lake and Git-native code replace a proprietary repository and XML export/import.</li></ul><blockquote><strong>Discovery: Know What You’re Migrating</strong></blockquote><p>Discovery isn’t just a workflow count — it’s metadata-driven inventory that answers three questions: What exists? What matters? What’s hard?</p><p>Pull directly from the PowerCenter repository database (not XML exports) and inventory:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*4qZsYgdq3FNmWSU2KGCzqA.jpeg" /></figure><blockquote><strong>Mapping the Architecture</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*qq-1k7hDMuOPtvs-cuB2wg.jpeg" /></figure><p>Some Informatica concepts (DTM buffer size, session partition type) have no direct Spark equivalent. Spark manages memory and parallelism fundamentally differently. Don’t force a 1:1 translation.</p><blockquote><strong>Transformation Cheat Sheet</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*nS0XdMOzyrsmpwi-ZOqV3g.jpeg" /></figure><p><strong>Date &amp; Time Functions:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*hU9ZGg7vtV8f4MrpvT78yA.jpeg" /></figure><p><strong>String Functions:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*urMoM8RSDUQ_SqvIA2XbmQ.jpeg" /></figure><blockquote><strong>Infrastructure Design</strong></blockquote><p>Unity Catalog gives you a three-level namespace (Catalog → Schema → Table). Use environment-level catalogs for cleaner CI/CD promotion. Storage follows the same medallion split across ADLS Gen2 containers (landing → bronze → silver → gold → archive).</p><p><strong>Cluster Configuration</strong></p><ul><li><strong>Job Clusters (Production)</strong> — Spin up for a scheduled run, shut down when done. Zero idle cost. All production pipelines should run here, one cluster per pipeline, so a failure or cost spike stays isolated.</li><li><strong>Interactive Clusters (Development)</strong> — Long-running, attached to notebooks for exploration and debugging. Dev/QA only, never production — idle time is billed continuously. Set a short auto-termination window (30–60 min) to control cost.</li><li><strong>SQL Warehouse (BI/Reporting)</strong> — Dedicated compute for dashboards and ad hoc SQL. Scales independently, so BI queries never compete with pipelines for resources.</li><li><strong>Cluster Policy (Governance)</strong> — Guardrails (node types, worker limits, Spark versions, mandatory tags) that stop anyone from spinning up an oversized, costly cluster. Usually layered: strict for production, relaxed-with-caps for developers, and separate for SQL Warehouses.</li></ul><p><strong>Security</strong></p><ul><li><strong>Service Principals</strong> — Non-human identities for all automated access (CI/CD, job clusters, scheduled pipelines). Every production job authenticates as a service principal, never a personal account, so access survives employee turnover and every action is auditable to the workload, not a person. Scope each one narrowly per environment or workload, with only the privileges it needs.</li><li><strong>Key Vault Integration</strong> — The only approved way to store credentials (JDBC passwords, API keys, storage keys). Secrets are never hardcoded; only the Key Vault scope/key name is referenced, and the value resolves at runtime via a Databricks secret scope.</li><li><strong>When to use which:</strong> Service Principals govern <em>identity</em> — what a pipeline can do. Key Vault governs <em>secrets</em> — what it can know. They work together: a job cluster runs as a service principal, which pulls credentials from Key Vault at runtime.</li></ul><blockquote><strong>Folder Structure</strong></blockquote><p>Keep business logic in importable Python modules, not buried in notebooks. Notebooks should be thin orchestration wrappers. This mirrors the medallion flow (ingestion → transformation → curation). A flat folder with hundreds of notebooks dumped in one directory is the single most common structural mistake in these projects.</p><blockquote><strong>Metadata-Driven Framework</strong></blockquote><p>Hardcoding sources and schedules into notebooks means every new source needs new code. A metadata-driven framework fixes this; one generic engine notebook, driven by Delta config tables, replaces hundreds of source-specific ones, so adding a table becomes a data change, not a code change. Migrate Informatica .par files into this config table instead of leaving them as flat text.</p><blockquote><strong>Workflow Orchestration</strong></blockquote><p>An Informatica Workflow (sessions, commands, decisions, event waits) maps to a Databricks Job: a DAG of Tasks with explicit dependencies.</p><pre>{ <br>  &quot;tasks&quot;: [ <br>    {&quot;task_key&quot;: &quot;ingest_orders&quot;, &quot;notebook_task&quot;: {&quot;notebook_path&quot;: &quot;...&quot;, &quot;base_parameters&quot;: {&quot;pipeline_id&quot;: &quot;PL_INGEST_ORDERS&quot;}}}, <br>    {&quot;task_key&quot;: &quot;transform_orders&quot;, &quot;depends_on&quot;: [{&quot;task_key&quot;: &quot;ingest_orders&quot;}], &quot;notebook_task&quot;: {&quot;notebook_path&quot;: &quot;...&quot;}}, <br>    {&quot;task_key&quot;: &quot;build_fact_sales&quot;, &quot;depends_on&quot;: [{&quot;task_key&quot;: &quot;transform_orders&quot;}], &quot;notebook_task&quot;: {&quot;notebook_path&quot;: &quot;...&quot;}} <br>  ], <br>  &quot;email_notifications&quot;: {&quot;on_failure&quot;: [&quot;data-engineering@company.com&quot;]} <br>} </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*3A5ApWnhfffzOrNpbAwsuQ.jpeg" /></figure><blockquote><strong>Notebook Standards</strong></blockquote><p>Every notebook should follow a standard skeleton: header (purpose, source/target, Informatica equivalent) → imports → parameters (via dbutils.widgets) → read → transform → validate → write → dbutils.notebook.exit() with a structured JSON result.</p><p>Naming conventions: df_&lt;descriptor&gt; for DataFrames, snake_case for columns/functions, PascalCase for classes, _prefixed for audit columns (_ingested_at, _run_id).</p><p><strong>Watch out:</strong> 500-line single-cell notebooks, hardcoded table names/dates, and mixing %sql with PySpark without a clear pattern are the three most common code-review flags in migration projects.</p><blockquote><strong>Data Ingestion Patterns</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*IAWy2AXt22yaBY7KBx4DnQ.jpeg" /></figure><blockquote><strong>Delta Lake Essentials</strong></blockquote><p>Delta Lake is the direct replacement for Informatica’s staging tables and Update Strategy logic, with ACID guarantees built in.</p><p>MERGE (replaces Update Strategy):</p><pre>MERGE INTO silver.orders AS tgt <br>USING bronze.oracle_sales_orders AS src <br>ON tgt.order_id = src.order_id <br>WHEN MATCHED AND src.modified_dt &gt; tgt._processed_at THEN UPDATE SET * <br>WHEN NOT MATCHED THEN INSERT *; </pre><p>OPTIMIZE + ZORDER (replaces post-session file compaction):</p><pre>OPTIMIZE gold.fact_sales ZORDER BY (customer_sk, date_sk); </pre><p>ZORDER on 1–4 columns that appear most in WHERE/JOIN clauses; run after bulk loads, not every micro-batch.</p><p>Time Travel (built-in audit trail and rollback):</p><pre>SELECT * FROM silver.orders VERSION AS OF 42; <br>RESTORE TABLE silver.orders TO VERSION AS OF 41; </pre><p>Schema evolution:</p><pre>df.write.format(&quot;delta&quot;).mode(&quot;append&quot;).option(&quot;mergeSchema&quot;, &quot;true&quot;).saveAsTable(&quot;bronze.orders&quot;) </pre><p><strong>Liquid Clustering vs. Partitioning + ZORDER</strong></p><p>Both aim to make queries scan less data, but fit different table types.</p><ul><li><strong>Partitioning + ZORDER</strong> — Splits a table into folders by column, then co-locates related data within each folder on 1–4 extra columns. Traditional and reliable, but the partition key is fixed at creation and must be low-cardinality — using something like customer_id creates millions of tiny files and kills performance. Best for large, mature tables with a stable, predictable query pattern.</li><li><strong>Liquid Clustering</strong> — Clusters data by column values without physical partitioning, so it works at any cardinality across up to 4 keys, with no small-file problem. Keys can change anytime without rewriting the table, and it auto-tunes as data is written. Best for new or sub-1TB tables, high-cardinality columns, or evolving query patterns.</li></ul><p><strong>When to use which:</strong> Default to Liquid Clustering for new tables. Use Partitioning + ZORDER only for large, mature tables with a proven, unchanging access pattern.</p><blockquote><strong>Performance Optimization</strong></blockquote><ul><li>Broadcast joins for any lookup/dimension table under ~500MB. This eliminates the shuffle on the large side.</li><li>Let Adaptive Query Execution (AQE) handle shuffle partitions. Set spark.sql.shuffle.partitions to “auto” rather than manually tuning.</li><li>Enable Photon on production job clusters. 2–8x speedup on aggregations, joins, scans, and MERGE, essentially for free on Jobs Compute pricing.</li><li>Delta’s file-level min/max stats let filtered queries skip entire files; ZORDER narrows those ranges further.</li></ul><p><strong>Partitioning Strategy by Scenario:</strong></p><p>Partitioning choice depends on table size, query pattern, and key cardinality — there’s no universal right answer, only the right fit for the scenario:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*sVi7enmwngCjqv81EgGytg.jpeg" /></figure><blockquote><strong>Logging Framework</strong></blockquote><ul><li>Log to a Delta table, not console output. A dedicated audit table (e.g., audit.execution_log) persists independently of any cluster’s lifecycle and is directly queryable for dashboards and root-cause analysis.</li><li>Capture per run, per stage: run ID, pipeline name, stage (read / transform / validate / write), status, start and end timestamps, source and target row counts, and the full error stack trace, not just the exception message.</li><li>Separate rejected records from status logs. If a pipeline routes bad rows to a dead-letter table, keep that as its own table rather than folding row-level detail into the execution log.</li></ul><blockquote><strong>Error Handling Framework</strong></blockquote><p>Error handling determines whether a bad record fails an entire batch or gets isolated for investigation.</p><ul><li><strong>Classify before retrying:</strong> Retryable errors are transient (connectivity, timeouts). Non-retryable errors are data problems. Example: a NULL primary key won’t fix itself on attempt three, so retrying it just wastes compute and delays detection.</li><li><strong>Backoff for retryable errors only: </strong>fail fast on data-quality errors instead of masking them with retry loops.</li><li><strong>Route bad records to a dead-letter table</strong> rather than failing the whole batch. This keeps the pipeline moving and preserves rejects for investigation.</li><li><strong>Make every pipeline idempotent:</strong> re-running with the same input must never create duplicates. Use MERGE or a partition-scoped replaceWhere, never delete-then-insert.</li><li><strong>Alert on failures and SLA breaches only: </strong>alerting on every success trains teams to ignore alerts.</li></ul><blockquote><strong>Data Validation Framework</strong></blockquote><p>Validation earns trust in migrated data and it needs to be automatic, not a manual spot-check.</p><ul><li>Run checks after every load, automatically, as part of the pipeline itself rather than a separate periodic exercise.</li><li>Core checks: row-count comparison between source and target, checksum comparison on numeric column sums, referential-integrity checks for orphaned foreign keys, and duplicate detection on business keys.</li><li>Add row-level hash comparison during parallel runs: an MD5 hash of key business columns per row. Matching row counts and matching sums do not guarantee the underlying values are correct.</li><li>Log every result, not just failures, to an audit table so quality trends are visible over time and regressions are caught early.</li><li>Gate cutover on sustained validation, not a single clean run: commonly 5–10 consecutive business days, long enough to cover week-end and month-end processing edge cases.</li></ul><blockquote><strong>Testing Strategy</strong></blockquote><ul><li>Unit tests validate individual transformation logic locally against small, synthetic datasets. No cluster required, fast feedback, run on every commit.</li><li>Integration tests run full notebook or pipeline flows end-to-end against a dev workspace to confirm the pieces work together, not just in isolation.</li><li>Parallel-run testing is the migration-specific layer: run the Databricks pipeline alongside the legacy Informatica pipeline against the same data and compare outputs before cutover. This is the single most important test category in a migration and should never be skipped or shortened.</li><li>Performance testing confirms the pipeline meets its SLA at production-representative data volumes.</li><li>Regression testing re-runs validation after any code, configuration, or performance-tuning change to confirm nothing that previously passed has broken.</li></ul><blockquote><strong>Common Migration Risks</strong></blockquote><p>The single biggest source of parallel-run mismatches is NULL handling — Informatica and Spark disagree in several places:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*aKdNGcu4VlPakpyU3eQQgw.jpeg" /></figure><p>Mitigate with explicit F.coalesce() and .eqNullSafe() rather than assuming behavior carries over.</p><p>Other high-probability risks: timezone discrepancies (standardize on UTC), numeric precision loss (use DECIMAL, not DOUBLE, for financial data), missed pre/post-session SQL (truncates, materialized-view refreshes buried in session properties), and security-model gaps (map every Informatica folder permission to a Unity Catalog grant before cutover).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*ccoAxiFc8ZiOmnotSEtg-A.jpeg" /></figure><blockquote><strong>CI/CD &amp; Monitoring</strong></blockquote><p><strong>Deployment:</strong> feature branch → build &amp; unit test → deploy to QA + integration test → deploy to prod. Everything lives in Git and there are no manual UI deployments. Rollback uses Delta Time Travel: RESTORE TABLE … TO VERSION AS OF n.</p><p><strong>Monitoring:</strong> Track five layers</p><ul><li>job status</li><li>cluster health: CPU/memory/shuffle</li><li>data quality: row counts, DQ pass rates</li><li>Cost: DBU by job</li><li>Platform: Unity Catalog audit logs</li></ul><p>Alert only on failures, repeated failures, SLA breaches and cost anomalies and not every metric change.</p><blockquote><strong>Best Practices</strong></blockquote><p><strong>Architecture</strong></p><ul><li>Adopt medallion Architecture</li><li>Enable Unity Catalog from day one.</li><li>Use Delta IDENTITY columns for surrogate keys.</li><li>Enable Change Data Feed on Silver so Gold reads deltas, not full scans.</li></ul><p><strong>Code quality</strong></p><ul><li>Business logic lives in importable Python modules, not notebooks.</li><li>Avoid Python UDFs where a built-in Spark function exists.</li><li>Parameterize everything.</li></ul><p><strong>Performance</strong></p><ul><li>Broadcast small lookup tables; let AQE manage shuffle partitions; enable Photon.</li><li>Filter and select columns as early as possible.</li></ul><p><strong>Data quality</strong></p><ul><li>Automate row-count, checksum, and hash validation on every run.</li><li>Run parallel validation for 10+ consecutive business days (covers week-end/month-end) before cutover.</li></ul><p><strong>Operations</strong></p><ul><li>Schedule OPTIMIZE + VACUUM weekly; don’t rely on auto-compact alone.</li><li>Tag every resource with cost center.</li></ul><blockquote><strong>Lessons Learned</strong></blockquote><p><strong>What causes failures:</strong></p><ul><li>Assuming NULLs behave the same in Informatica and Spark.</li><li>Missing pre/post-session SQL buried in session properties.</li><li>Assuming Spark preserves row order like Informatica; use explicit ORDER BY in window functions.</li><li>Treating monotonically_increasing_id() as sequential.</li><li>Row-by-row Python loops instead of vectorized operations.</li><li>Skipping load tests at production volumes before parallel runs.</li></ul><p><strong>What saves time:</strong></p><ul><li>Build the shared framework (logging, error handling, validation) before migrating the first pipeline.</li><li>Query the Informatica repository database directly instead of parsing XML exports.</li><li>Automate parallel-run reconciliation.</li><li>Use Delta MERGE instead of delete-then-insert; let AQE handle shuffle tuning.</li></ul><p><strong>Anti-patterns to avoid:</strong></p><ul><li><strong>Line-by-line PySpark translation</strong>; let Catalyst optimize declarative transformations instead.</li><li><strong>One notebook per session;</strong> use the metadata-driven framework instead.</li><li><strong>Interactive clusters in production;</strong> always use ephemeral job clusters.</li><li><strong>Rebuilding what Databricks already provides;</strong> Unity Catalog, Workflows, and System Tables replace custom governance/logging.</li></ul><p>Migration playbooks don’t guarantee smooth migrations but parallel runs, careful validation, and a healthy respect for how differently Spark and Informatica handle edge cases do. Start there, and the rest gets a lot easier.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e71dac0a56a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>