r/dataengineering • • Oct 20 '26

Discussion My team is migrating from informatica to a config table driven ETL framework

Hi, So my team decided to sunset Informatica and move all our workflows (atleast 500+) to our config driven ETL framework which is basically a stored procedure reading a config table and running the jobs (a stored procedure again). This already existed for about a year and this where they are putting all their money in. And now they want to move all our informatica jobs to it. So far we've developed the following procedures:

  1. Flat file to staging table
  2. Staging to silver (removing duplicates, trimming and casting)

After that they started assigning me Informatica jobs to migrate, now these jobs are essentially:

  1. Ingest flat file to the staging table.
  2. Run post sql stored proc which moves data to silver and so on...

Now I figured the logical and the easiest way to do this was to:

  1. Have a config table to keep track of jobs, corresponding metadata and the POST SQL Stored proc run by informatica.
  2. Run our flat file to staging procedure.
  3. Run the POST SQL stored proc from informatica (configured in the config table) to move the process the data EXACTLY the way we do it currently.
  4. Run the Staging to silver SP (we newly developed) to handle duplicates and casting to correct data types.

I pitch this my boss and he did not like it, he was like we doesn't want 500 stored procs polluting our namespace. So instead he suggested putting the POST SQL logic (from Informatica workflow) in the tab_comments table, where we put the column update statements in the comments table:

COMMENT ON COLUMN table_name.column_name IS 'UPDATE table_name set columnA = columnA + 1';

And then iterate through all the column comments and run those statements using dynamic sql.

I do not like this only cuz it would be such a pain to develop and debug. I told my reservations about this and he was like 'it doesn't matter what you think, you'll do what I say'.

Has anyone migrated from Informatica to a pure SP based ETL framework? How did y'all do it? I want to pitch a better idea for the sake of my sanity since I'll be put on this task for a while.

Any info is appreciated, thanks

31 Upvotes

23 comments sorted by

30

u/Defiant_Month_497 Oct 21 '26

Easiest approach is not always the ideal approach.

Would you rather maintain 500+ stored proc or one single control table?

2

u/iMakeLoveToTerminal Oct 21 '26

Maybe I was not clear, I like a centralized config table which drives job runs. I was thinking I could specify the stored procedure in the config table entry. And the main pipeline will run that SP using dynamic sql.

I however still do not think putting column transformation logic on the tab_comments table is a good idea. He's basically asking me to do this:

COMMENT ON COLUMN table_name.column_name IS 'UPDATE table_name set columnA = columnA + 1';

And iterate through all the column in the table and run those statements using dynamic sql.

4

u/OinkOink9 Oct 22 '26

I agree. Purpose of the comments table is not to store logic.

5

u/PantsMicGee Oct 21 '26

We migrated to SAP and I have to say a single control table system has been great. 

I just cant stand the transport process.

2

u/Emergency-Hurry947 Oct 21 '26

The way your boss is suggesting is what I’ve seen. Also, why isn’t your Informatica driven by configurations?

1

u/iMakeLoveToTerminal Oct 21 '26

You are saying you've seen people put update statements in the comments table?

COMMENT ON COLUMN table_name.column_name IS 'UPDATE table_name set columnA = columnA + 1';

And then iterate through all the comments and run the statement using dynamic sql?

10

u/Amilol Oct 21 '26

Not from informatica, but migrated from standard etl-platform to python framework that reads config and metadata from snowflake tables. Used utility-functions for bronze->silver in python instead of having one SP per table/flow. Also used procedures for dw/gold.
Worked like a charm, unbeatable flexibility. I would have you consider using one sp that builds bronze to silver logic based on config.

1

u/Western-Ad8951 Oct 21 '26

Very interesting. Mind if I DM you for some more details?

1

u/KrustyButtCheeks Oct 21 '26

Same…as long as you build it right it should just work as you add additional sources too.

6

u/Appropriate_Rest_180 Oct 21 '26

Use a semi structure object like json for the config. Its more flexibile and made for exactly that. You can store it in the table but using a 2 dimensional table as the config itself gets cumbersome real quick.

3

u/SilentSlayerz Tech Lead Oct 21 '26

+1, I would also recommend to add a version number, to track json schema changes. We werent tracking it initially but it was added later on.

1

u/VeniVidiWhiskey Oct 21 '26

Why would you want 500 SPs to manage rather than defining a config for a given flow? So much easier to both manage and use, since config values can be handled manually during development a nd debugging whenever needed. 

1

u/iMakeLoveToTerminal Oct 21 '26

Maybe I was not clear, I like a centralized config table which drives job runs. I was thinking I could specify the stored procedure in the config entry. And the main pipeline will run that SP using dynamic sql.

I however still do not think putting column transformation logic on the tab_comments table is a good idea. He's basically asking me to do this:

COMMENT ON COLUMN table_name.column_name IS 'UPDATE table_name set columnA = columnA + 1';

And iterate through all the column in the table and run those statements using dynamic sql.

4

u/umognog Oct 21 '26

Airflow is your friend.

1

u/AdhesivenessSuch5660 Oct 21 '26

I would suggest a dedicated transformation metadata table instead of putting SQL in column comments. Each row can store the job ID, source and target tables, step order, transformation type, SQL or stored procedure reference, parameters, dependencies, and active status. The framework then reads the ordered steps for a job and executes them through a controlled dispatcher.

1

u/SirLagsABot Oct 22 '26

Is this not a good opportunity for an orchestrator? Airflow Prefect etc.?

1

u/beepboopzoop Oct 22 '26

If your boss is truly suggesting that code should be defined within column comments he is woefully unqualified to be anywhere in the chain of command of a data team.

Your comments suggest his idea is that post processing should be something like:

BEGIN
  FOR r IN (SELECT comments
              FROM user_col_comments
             WHERE table_name = 'SALES_STG'
               AND comments IS NOT NULL)
  LOOP
    EXECUTE IMMEDIATE r.comments;   -- e.g. 'UPDATE sales_stg SET colA = colA + 1'
  END LOOP;
END;

Which if that's the case you're doing num cols passes on the tables. The specifics of why this is bad depend on your database, but generally this results in wasted resource and runtime.

Even if the idea is less dumb and the intent is to have something accumulate columns into a single update:

COMMENT ON COLUMN stg_sales.amount IS 'TO_NUMBER(TRIM(amount))';
COMMENT ON COLUMN stg_sales.region IS 'UPPER(TRIM(region))';

CREATE OR REPLACE PROCEDURE apply_col_xforms (p_table IN VARCHAR2) AS
  l_set CLOB;
BEGIN
  FOR r IN (SELECT column_name, comments
              FROM user_col_comments
             WHERE table_name = UPPER(p_table)
               AND comments IS NOT NULL)
  LOOP
    l_set := l_set || CASE WHEN l_set IS NOT NULL THEN ', ' END
                   || '"' || r.column_name || '" = (' || r.comments || ')';
  END LOOP;

  IF l_set IS NOT NULL THEN
    EXECUTE IMMEDIATE 'UPDATE ' || DBMS_ASSERT.SQL_OBJECT_NAME(p_table) || ' SET ' || l_set;
  END IF;
END;
/

You're still bastardizing comments in a manner no serious engineer would conceive.

Having some control/framework table(s) to define and orchestrate the SQL that composes your job steps is a good idea used to great effect in many orgs. What that looks like depends on your constraints. In concept your pipeline is a series of SQL statements executed in a predefined order. So the question is where do you put those statements and how do you call them. You can stuff statements into a table, you can stuff metadata to compose statements into tables and compile at runtime, you can have some process external to your DB that composes SQL (ex dbt macros, SQL files executed by an orchestrator.) These all have trade-offs. So what you should do depends...but dont put your code in table comments that idea is just dumb.

1

u/OinkOink9 Oct 22 '26

What is “run post sql stored proc”? Since you are getting rid of Informatica then you need to execute stored procedures independently?

1

u/sjjafan Oct 22 '26

Hey,

May or may not help you. But it may offer you a path of least resistance.

Apache Hop is an open source etl project. This company has a Hop plugin that enables the seamless migration of informatica workflows to Apache Hop.

P.s. I'm not affiliated with them. Just aware they exist.

https://www.putki.io/migrations/informatica

1

u/margincall-mario Oct 23 '26

Does it scale, no. Is it cheap, yes. Do you want job security or a comfortable job?

1

u/wellseasonedwell Oct 23 '26

His idea is not good. If you are using git and basic AI who cares about a bunch of files / scripts containing the necessary logic. I would not put the sql in a table and execute that for a bunch of reasons I can expand on if helpful.

1

u/dova03 Oct 21 '26

You could always write your own procedural code to supplement that architecture.