Jason Wiener
07/15/2025, 6:23 PMkapa.ai
07/15/2025, 6:24 PMSubstreamPartitionRouter in your child stream. In the parent_stream_configs, you specify: - The parent stream reference. - The parent_key (the field in the parent record you want to propagate). - The partition_field (the variable name you will use to reference the parent key in the child stream). Example: yaml partition_router: type: SubstreamPartitionRouter parent_stream_configs: - stream: "#/repositories_stream" parent_key: "id" partition_field: "repository" You can then reference the parent key in your child stream using the stream_slice or stream_partition variable, e.g., {{ stream_slice.repository }} or {{ stream_partition.repository }} in the URL path, request parameters, or transformations. This will inject the parent key value into each child record as needed. For more details, see the [SubstreamPartitionRouter documentation](https://docs.airbyte.com/platform/1.6/connector-development/config-based/understanding-the-yaml-file/partition-router#substreampartitionrouter). ### Connector Builder UI If you are using the Connector Builder UI, configure the "Parent Stream" component: - Set the "Parent Key" to the field you want from the parent stream (e.g., id). - Set the "Current Parent Key Value Identifier" (e.g., order). - In your child stream, you can then use {{ stream_partition.order }} to reference the parent key value in the output, such as in the URL path or in transformations. Example: If your parent stream is "orders" and the key is id, set the identifier to order. In the child stream, you can use: /orders/{{ stream_partition.order }}/notes This will ensure each child record is associated with the correct parent key value in the output stream. For more, see the [Parent Stream documentation](https://docs.airbyte.com/platform/1.6/connector-development/connector-builder-ui/partitioning#parent-stream). ### Known Limitation There is a known issue where using {{ stream_partition["parent_id"] }} inside a transformation may not always resolve to the correct value for each record; it works reliably in the URL path but may not in transformations. As a workaround, you can use {{ stream_partition }} to get the full partition object, but this returns the entire object, not just the value. This issue is tracked in [this GitHub issue](https://github.com/airbytehq/airbyte/issues/59117). --- Summary: Use the `partition_field`/identifier in your partition router and reference it via {{ stream_partition.<identifier> }} in your child stream's configuration to include the parent key value in the output. Be aware of the current limitations in transformations and check for updates if you encounter issues.Jason Wiener
07/15/2025, 7:44 PMkapa.ai
07/15/2025, 7:44 PMkapa.ai
07/15/2025, 7:44 PM