Alexandre Chouraki
03/28/2022, 9:43 AMChris Duong [Airbyte]
03/28/2022, 9:47 AM"<name> as data_source,
column when union-ing them together and track from which source a row comes from
• solution 2 might work though. The cursor is stored in airbyte’s internal db for your connection (a pair between source-destination) and does not depend on what is in the destinationChris Duong [Airbyte]
03/28/2022, 9:49 AMprefix
on your tables so you dont need N schemas or N destinations if you go with solution 3Alexandre Chouraki
03/28/2022, 10:07 AMChris Duong [Airbyte]
03/28/2022, 10:08 AMwith a custom_dbt transformation ?Yes!
Alexandre Chouraki
03/28/2022, 10:11 AMChris Duong [Airbyte]
03/28/2022, 10:11 AMhow should I ingest my “name as data_source” ?You could even write a dbt macro to automatically detect your N sources (with some regexp?) and add their name as a column: https://docs.getdbt.com/docs/building-a-dbt-project/jinja-macros#set-variables-at-the-top-of-a-model
Alexandre Chouraki
03/28/2022, 12:20 PMAugustin Lafanechere (Airbyte)
03/28/2022, 1:59 PMAlexandre Chouraki
03/28/2022, 2:25 PM