Derek Herincx
09/21/2022, 4:37 AMBasic Normalization
, I get the following error (I know that the connector works because when I try to ingest with the normalization setting set to Raw data (JSON)
, I am able to successfully retrieve data):
2022-09-21 04:30:31 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/transform.py", line 36, in run
2022-09-21 04:30:31 normalization > self.process_catalog()
2022-09-21 04:30:31 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/transform.py", line 64, in process_catalog
2022-09-21 04:30:31 normalization > processor.process(catalog_file=catalog_file, json_column_name=json_col, default_schema=schema)
2022-09-21 04:30:31 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/catalog_processor.py", line 55, in process
2022-09-21 04:30:31 normalization > stream_processors = self.build_stream_processor(
2022-09-21 04:30:31 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/catalog_processor.py", line 138, in build_stream_processor
2022-09-21 04:30:31 normalization > properties = get_field(get_field(stream_config, "json_schema", message), "properties", message)
2022-09-21 04:30:31 normalization > File "/usr/local/lib/python3.9/site-packages/normalization/transform_catalog/catalog_processor.py", line 230, in get_field
2022-09-21 04:30:31 normalization > raise KeyError(message)
2022-09-21 04:30:31 normalization > KeyError: "'json_schema'.'properties' are not defined for stream segments"
Derek Herincx
09/21/2022, 4:38 AM{
"streams": [
{
"stream": "segments",
"json_schema": {
"$schema": "<http://json-schema.org/draft-04/schema#>",
"type": "object",
"properties": {
"id": {
"type": [
"null",
"string"
]
},
"name": {
"type": [
"null",
"string"
]
},
"creator": {
"type": [
"null",
"string"
]
},
"created": {
"type": [
"null",
"string"
]
},
"url": {
"type": [
"null",
"string"
]
}
}
},
"supported_sync_modes": [
"full_refresh"
],
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
}
]
}
Harshith (Airbyte)
09/21/2022, 3:03 PMDerek Herincx
09/21/2022, 3:10 PMsegments
stream defined because it’s the only one I’m replicating and it does have the properties key defined.Harshith (Airbyte)
09/21/2022, 3:13 PMDerek Herincx
09/21/2022, 3:14 PMschemas/segments.json
{
"streams": [
{
"name": "segments",
"supported_sync_modes": [
"full_refresh"
],
"source_defined_cursor": false,
"json_schema": {
"type": "object",
"properties": {
"id": {
"type": [
"null",
"string"
]
},
"name": {
"type": [
"null",
"string"
]
},
"creator": {
"type": [
"null",
"string"
]
},
"created": {
"type": [
"null",
"string"
]
},
"url": {
"type": [
"null",
"string"
]
}
}
}
}
]
}
Harshith (Airbyte)
09/21/2022, 3:15 PM