Matt Menzenski
06/18/2024, 7:27 PMschema
(and default_schema
) property gets set as part of the target configuration and it doesn’t seem like there’s a way to configure it so that records with source_name=service_a
get written to schema service_a
while records with source_name=service_b
get written to schema service_b
.
Is there any to accomplish this kind of behavior?Matt Menzenski
06/18/2024, 7:32 PMschema_mapping
config property in the transferwise variant 🤔
But we’re already using the MeltanoLabs variant in production and I don’t want to switchEdgar Ramírez (Arch.dev)
06/19/2024, 11:17 AM<schema>-<table>
stream name pattern. Maybe that's enough for a workaround?Matt Menzenski
06/20/2024, 1:52 AMMatt Menzenski
06/20/2024, 10:33 AMnamespace
which is a key-value dict: ”namespace”: {“database”: “customer_service”, “collection”: “Customer”}
- I would like to be able to split the single stream into a stream for each database and collection (so this example would be split into a new customer_service-customer
stream) without having to hardcode a lot of all possible databases and collections (as new ones will be created and I want them to be picked up automatically).Matt Menzenski
06/20/2024, 11:25 PMEdgar Ramírez (Arch.dev)
06/21/2024, 8:58 AMschema_mapping
would help with that.Matt Menzenski
06/21/2024, 12:10 PMEdgar Ramírez (Arch.dev)
06/21/2024, 5:20 PMMatt Menzenski
06/21/2024, 5:22 PMEdgar Ramírez (Arch.dev)
06/21/2024, 5:25 PMMatt Menzenski
06/21/2024, 5:26 PMfor stream_map in self.mapper.stream_maps[stream_id]:
Matt Menzenski
06/21/2024, 5:26 PMMatt Menzenski
06/21/2024, 5:27 PMtarget-snowflake supports creating schemas based on theSpecifically, I am going to try to split one stream into many using this naming pattern for the new streams so that I can make target-snowflake land the data into the tables that we’re already using, rather than into a single giant table containing all events.stream name pattern. Maybe that’s enough for a workaround?<schema>-<table>
Edgar Ramírez (Arch.dev)
06/24/2024, 11:38 AMbut, if I split one stream into ten, dynamically, it sounds like I should be emitting a schema message to each of the ten new streamsthat is correct
Edgar Ramírez (Arch.dev)
06/24/2024, 11:39 AMMatt Menzenski
06/24/2024, 12:10 PMMatt Menzenski
06/24/2024, 12:11 PMEdgar Ramírez (Arch.dev)
06/25/2024, 10:02 AMI’m wondering if maybe it’s easier to push this splitting up into the tap and do dynamic stream names thereYeah, if it's not ever meant to be public or generally useful outside your org it might definitely make sense to do it in the tap.
Matt Menzenski
06/25/2024, 5:42 PMMatt Menzenski
06/25/2024, 5:44 PM