<@U04S8PLJWMT> version: 6.48.15 type: Declarativ...
# ask-ai
h
@kapa.ai version: 6.48.15 type: DeclarativeSource check: type: CheckStream stream_names: - indicator_values 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:{{ stream_partition['dx'] }},pe201701;201702;201703;201704,ou{{ stream_partition['ou'] }} record_selector: type: RecordSelector extractor: type: DpathExtractor field_path: [] partition_router: - type: ListPartitionRouter values: - wqURG81DbhS - TQZa6RHFdsh cursor_field: ou - type: ListPartitionRouter values: - EM02m2HPZG6 - PePmfAnKV3c cursor_field: dx - type: ListPartitionRouter values: - 201701;201702;201703 - 201704;201705;201706 - 201707;201708;201709 - 201710;201711;201712 cursor_field: pe schema_loader: type: InlineSchemaLoader schema: $ref: "#/schemas/indicator_values" base_requester: type: HttpRequester url_base: https://*.*.gov.et/api/analytics authenticator: type: BasicHttpAuthenticator password: "{{ config[\"password_2\"] }}" username: "{{ config[\"username_2\"] }}" streams: - $ref: "#/definitions/streams/indicator_values" spec: type: Spec connection_specification: type: object $schema: http://json-schema.org/draft-07/schema# required: - username_2 properties: password_2: type: string order: 1 title: Password always_show: true airbyte_secret: true username_2: type: string order: 0 title: Username additionalProperties: true metadata: assist: {} testedStreams: indicator_values: hasRecords: true streamHash: 15240667d4046e618331bb9c66b1c935e3248e21 hasResponse: true primaryKeysAreUnique: true primaryKeysArePresent: true responsesAreSuccessful: true autoImportSchema: indicator_values: false schemas: indicator_values: type: object properties: dx: type: string description: Indicator ID ou: type: string description: Org Unit ID pe: type: string description: Period (YYYYMM) value: type: string description: Indicator Value additionalProperties: true after publishing this does the extraction do by it self without selecting partition
k
Based on your YAML configuration, the extraction will automatically iterate over all combinations of the partition values you defined in the three ListPartitionRouter components for the stream indicator_values. You do not need to manually select partitions at runtime. Here’s how it works: - Each ListPartitionRouter defines a set of values for a specific field (ou, dx, pe). - Airbyte will generate requests for every possible combination of these values (a Cartesian product). - For each combination, the corresponding values will be injected into the request parameters using the {{ stream_partition['<field>'] }} syntax. This means that after publishing the connector, Airbyte will handle the partitioning and extraction automatically, without requiring you to select partitions manually. The process is described in the documentation as follows: > When multiple routers are used, all possible combinations of partition values are requested separately. > Example: ... This generates all combinations... > [Partition Router Types](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/partitioning#partition-router-types) So, yes: after publishing, the extraction will run for all defined partitions automatically, and you do not need to select them yourself.