mert_bakir
05/15/2023, 8:06 PM- schema_from_src_a:
- table_1
- table_2
- schema_from_src_b:
- table_1
- table_2
... the list goes on there are hundreds of tables, the source is a relational db, and tables has keys...
- final_schema:
- table_1
- table_2
Is there an easy way to achieve this, or do I have to write some sort of union all logic for each table, and generate new keys consistently ? since the original keys will not be unique across sources.Henning Holgersen
05/15/2023, 8:14 PMHenning Holgersen
05/15/2023, 8:15 PMmert_bakir
05/15/2023, 8:17 PMsrc_a:
- table_1.primary_key -> 'a_' + table_1.primary_key
src_b:
- table_1.primary_key -> 'b_' + table_1.primary_key
Henning Holgersen
05/15/2023, 8:20 PMmert_bakir
05/15/2023, 8:23 PMvisch
05/16/2023, 12:21 PMHenning Holgersen
05/16/2023, 1:14 PM