You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airbyte_cdk/sources/declarative/declarative_component_schema.yaml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2873,6 +2873,15 @@ definitions:
2873
2873
type:
2874
2874
type: string
2875
2875
enum: [ParentStreamConfig]
2876
+
lazy_read_pointer:
2877
+
title: Lazy Read Pointer
2878
+
description: If set, this will enable lazy reading, using the initial read of parent records to extract child records.
2879
+
type: array
2880
+
default: [ ]
2881
+
items:
2882
+
- type: string
2883
+
interpolation_context:
2884
+
- config
2876
2885
parent_key:
2877
2886
title: Parent Key
2878
2887
description: The primary key of records from the parent stream that will be used during the retrieval of records for the current substream. This parent identifier field is typically a characteristic of the child records being extracted from the source API.
@@ -3242,15 +3251,6 @@ definitions:
3242
3251
- "$ref": "#/definitions/IterableDecoder"
3243
3252
- "$ref": "#/definitions/XmlDecoder"
3244
3253
- "$ref": "#/definitions/ZipfileDecoder"
3245
-
lazy_read_pointer:
3246
-
title: Lazy Read Pointer
3247
-
description: If set, this will enable lazy reading, using the initial read of parent records to extract child records.
description="OAuth specific blob. This is a Json Schema used to validate Json configurations used as input to OAuth.\nMust be a valid non-nested JSON that refers to properties from ConnectorSpecification.connectionSpecification\nusing special annotation 'path_in_connector_config'.\nThese are input values the user is entering through the UI to authenticate to the connector, that might also shared\nas inputs for syncing data via the connector.\nExamples:\nif no connector values is shared during oauth flow, oauth_user_input_from_connector_config_specification=[]\nif connector values such as 'app_id' inside the top level are used to generate the API url for the oauth flow,\n oauth_user_input_from_connector_config_specification={\n app_id: {\n type: string\n path_in_connector_config: ['app_id']\n }\n }\nif connector values such as 'info.app_id' nested inside another object are used to generate the API url for the oauth flow,\n oauth_user_input_from_connector_config_specification={\n app_id: {\n type: string\n path_in_connector_config: ['info', 'app_id']\n }\n }",
description="OAuth specific blob. This is a Json Schema used to validate Json configurations used as input to OAuth.\nMust be a valid non-nested JSON that refers to properties from ConnectorSpecification.connectionSpecification\nusing special annotation 'path_in_connector_config'.\nThese are input values the user is entering through the UI to authenticate to the connector, that might also shared\nas inputs for syncing data via the connector.\nExamples:\nif no connector values is shared during oauth flow, oauth_user_input_from_connector_config_specification=[]\nif connector values such as 'app_id' inside the top level are used to generate the API url for the oauth flow,\n oauth_user_input_from_connector_config_specification={\n app_id: {\n type: string\n path_in_connector_config: ['app_id']\n }\n }\nif connector values such as 'info.app_id' nested inside another object are used to generate the API url for the oauth flow,\n oauth_user_input_from_connector_config_specification={\n app_id: {\n type: string\n path_in_connector_config: ['info', 'app_id']\n }\n }",
description="OAuth specific blob. This is a Json Schema used to validate Json configurations persisted as Airbyte Server configurations.\nMust be a valid non-nested JSON describing additional fields configured by the Airbyte Instance or Workspace Admins to be used by the\nserver when completing an OAuth flow (typically exchanging an auth code for refresh token).\nExamples:\n complete_oauth_server_input_specification={\n client_id: {\n type: string\n },\n client_secret: {\n type: string\n }\n }",
"", description="The primary key of the stream.", title="Primary Key"
1993
2005
)
@@ -2205,6 +2217,11 @@ class DynamicSchemaLoader(BaseModel):
2205
2217
2206
2218
classParentStreamConfig(BaseModel):
2207
2219
type: Literal["ParentStreamConfig"]
2220
+
lazy_read_pointer: Optional[List[str]] =Field(
2221
+
[],
2222
+
description="If set, this will enable lazy reading, using the initial read of parent records to extract child records.",
2223
+
title="Lazy Read Pointer",
2224
+
)
2208
2225
parent_key: str=Field(
2209
2226
...,
2210
2227
description="The primary key of records from the parent stream that will be used during the retrieval of records for the current substream. This parent identifier field is typically a characteristic of the child records being extracted from the source API.",
@@ -2240,7 +2257,9 @@ class ParentStreamConfig(BaseModel):
"LazySimpleRetriever only supports 'SubstreamPartitionRouterModel' as the 'partition_router' type. "# type: ignore[union-attr] # model.partition_router has BaseModel type
2755
-
f"Found: '{model.partition_router.type}'."
2753
+
f"Found more that one slice per parent. LazySimpleRetriever only supports single slice read for stream - {name}."
2756
2754
)
2757
-
lazy_read_pointer= []
2758
-
fori, pathinenumerate(model.lazy_read_pointer):
2759
-
ifpath=="*":
2760
-
raiseValueError(
2761
-
f"'lazy_read_pointer' support only direct pointing. Found: '* as a {i} element in the pointer.'"
0 commit comments