hiwot tadese
09/29/2025, 6:54 PMkapa.ai
09/29/2025, 6:55 PMpartition_router to your YAML file, you need to define it under the retriever section of your stream. The partition_router allows you to iterate over partitions (such as different values for a parameter) and make separate requests for each partition value. Based on your current YAML and the Airbyte documentation, here’s how you can add a ListPartitionRouter to partition your requests by, for example, different organization units (ou) or periods (pe). Below is an example of how to add a partition_router for the ou field: yaml definitions: streams: indicator_values: type: DeclarativeStream name: indicator_values retriever: type: SimpleRetriever decoder: type: JsonDecoder requester: $ref: "#/definitions/base_requester" path: https://****.***.gov.et/api/analytics http_method: GET request_parameters: dimension: dx:aBjlxmZHXWv,pe:201701;201702;201703;201704,ou:wqURG81DbhS record_selector: type: RecordSelector extractor: type: DpathExtractor field_path: [] partition_router: type: ListPartitionRouter cursor_field: "ou" values: - "wqURG81DbhS" - "anotherOrgUnitId" request_option: type: RequestOption field_name: "ou" inject_into: "request_parameter" schema_loader: type: InlineSchemaLoader schema: $ref: "#/schemas/indicator_values" Key points: - The partition_router is placed under the retriever section. - type: ListPartitionRouter is used for static lists of partition values. - cursor_field is the field you want to partition by (e.g., "ou"). - values is the list of values to iterate over. - request_option specifies how to inject the partition value into the outgoing request. You can adjust the cursor_field and values to match the parameter you want to partition by (e.g., pe for periods, or any other supported field). For more advanced partitioning (such as dynamic values from another stream), you would use a SubstreamPartitionRouter instead. See the documentation for more details and examples: [Retrieving Records Spread Across Partitions](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/partition-router) and [Partition Router Types](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/partitioning#partition-router-types). If you need to partition by multiple fields, you can define multiple partition routers as an array, and Airbyte will perform a Cartesian product of all partitions as described in the docs. Let me know if you need an example for a different partitioning strategy!