Zawar Khan
07/08/2025, 9:23 AMdimension_stream.
This connector is called multiple times—once for each country—through separate pipelines. However, the data returned by the stream does not include the country name it was called. Since each country has a different dimension, I need a way to tag or specify the country name so that it’s included in the fetched records.
Is there a way to define the country name—either in the catalog or manifest file—so that when the catalog executes the dimension_stream, the country name is automatically added to each record? I’m using a low-code platform.
MY stream
query_objects_dimensions_stream:
type: DeclarativeStream
name: "query_objects_dimensions"
primary_key: ""
$parameters:
path: "/query-objects?language=en"
retriever:
type: SimpleRetriever
record_selector:
$ref: "#/definitions/dimension_selector"
paginator:
type: NoPagination
requester:
$ref: "#/definitions/requester"kapa.ai
07/08/2025, 9:24 AMcountry available in your connector configuration or as a stream parameter. You can add the following to your stream definition: yaml query_objects_dimensions_stream: type: DeclarativeStream name: "query_objects_dimensions" primary_key: "" $parameters: path: "/query-objects?language=en" country: "{{ config['country'] }}" # or however you pass the country retriever: type: SimpleRetriever record_selector: $ref: "#/definitions/dimension_selector" paginator: type: NoPagination requester: $ref: "#/definitions/requester" transformations: - type: AddFields fields: - path: ["country"] value: "{{ config['country'] }}" # or use the appropriate variable - If you are using stream parameters, you can reference them with Jinja expressions like {{ parameters['country'] }}. - If the country is set in the connector config, use {{ config['country'] }}. Result: Every record output by this stream will have a country field with the value set for that pipeline run. References: This approach is documented in the Airbyte docs for [adding fields with transformations](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/record-selector#transformations) and for [custom parameter injection](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/partitioning#custom-parameter-injection). If you need to pass the country as a stream parameter, you can use the $parameters field in your stream definition and reference it in the transformation as shown above. Let me know if you need a more specific example based on how you are passing the country value!Zawar Khan
07/08/2025, 9:27 AM{
"streams": [
{
"stream": {
"name": "query_objects_dimensions",
"json_schema": {},
"supported_sync_modes": [
"full_refresh"
]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append",
"primary_key": [],
"cursor_field": []
}kapa.ai
07/08/2025, 9:29 AMkapa.ai
07/08/2025, 9:29 AM