<@U04S8PLJWMT> i have created a connection from mo...
# ask-ai
k
@kapa.ai i have created a connection from mongo to iceberg .. i want to add multiple streams from source but at same destination path that means in one table all the streams has to be inserted .. but i want to identify which collention they belongs to in one new column
k
Currently, Airbyte does not natively support merging multiple source streams (such as MongoDB collections) into a single destination table while automatically adding a column to identify the source collection. Each stream from the source is mapped to its own table (or collection) in the destination by default. There is no built-in feature to combine multiple streams into one table with an additional column indicating the original collection name. This feature has been requested by users for other destinations (like Postgres), and there is an open GitHub issue tracking this need. The suggested solution is to allow merging multiple streams into a single destination table and add a column (e.g., stream or collection name) to identify the source, but this is not yet implemented in Airbyte. The current workaround is to sync each stream to its own table and then combine them downstream (outside Airbyte), for example, using a transformation tool or SQL in your destination system. This approach is also recommended in the documentation for similar scenarios, as Airbyte enforces unique stream identifiers and does not allow multiple connections to write to the same destination table to avoid data loss or conflicts [Configuring schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema), [Unique stream prefixes or namespaces are now mandatory](https://docs.airbyte.com/release_notes/v-1.6#unique-stream-prefixes-or-namespaces-are-now-mandatory), [GitHub issue #2224](https://github.com/airbytehq/airbyte/issues/2224). Summary: - Airbyte does not currently support merging multiple MongoDB collections into a single Iceberg table with an automatic "collection name" column. - The recommended approach is to sync each collection to its own table and merge them downstream, adding the collection name as part of your transformation process. - This feature is a known request but is not available as of now. If you need this functionality, you will need to implement the merging and column addition outside of Airbyte after the sync completes.