Hrvoje Piasevoli
11/20/2022, 9:16 PMNataly Merezhuk (Airbyte)
11/21/2022, 7:02 PMHrvoje Piasevoli
11/21/2022, 9:33 PMHrvoje Piasevoli
11/21/2022, 9:43 PM{
"catalog_hash": "19f77082",
"catalog": "{\"streams\": [{\"name\": \"actor_catalog\", \"namespace\": \"public\", \"json_schema\": ....}",
"created_at": "2022-10-04T10:51:04.164499Z",
"id": "7c3128d5-2289-42f2-8173-b72593c8c793",
"modified_at": "2022-10-04T10:51:04.164499Z"
}
On the other hand the zendesk_support source ingested using regular bigquery has proper json structure in raw table:
{
"team_member_count": 0,
"role_type": 1,
"updated_at": "2022-05-11T14:26:32Z",
"configuration": {
"voice_access": false,
"moderate_forums": false,
"side_conversation_create": true,
...
"organization_editing": false,
"chat_access": false
},
"name": "Light agent",
"description": "Can view and add private comments to tickets",
"created_at": "2021-12-09T22:04:58Z"
}
This is from the logs (stream actor_catalog, column catcalog is defined as string but I have tried to set airbyte_type: object):
2022-11-19 14:08:58 destination > Selected loading method is set to: GCS
2022-11-19 14:08:58 destination > S3 format config: {"format_type":"AVRO","flattening":"No flattening"}
2022-11-19 14:08:58 destination > All tmp files will be removed from GCS when replication is finished
2022-11-19 14:08:58 destination > Creating BigQuery staging message consumer with staging ID 749e91fd-f3a5-471e-9c13-18ddc3783836 at 2022-11-19T14:08:52.948Z
2022-11-19 14:08:58 destination > getSchemaFields : {"type":"object","properties":{"id":{"type":"string"},"catalog":{"type":"string","airbyte_type":"object"},"created_at":{"type":"string","format":"timestamp-micros","airbyte_type":"timestamp_with_timezone"},"modified_at":{"type":"string","format":"timestamp-micros","airbyte_type":"timestamp_with_timezone"},"catalog_hash":{"type":"string"}}} namingResolver io.airbyte.integrations.destination.bigquery.BigQuerySQLNameTransformer@78c1372d
2022-11-19 14:08:58 destination > Airbyte Schema is transformed from {"type":"object","properties":{"id":{"type":"string"},"catalog":{"type":"string","airbyte_type":"object"},"created_at":{"type":"string","format":"timestamp-micros","airbyte_type":"timestamp_with_timezone"},"modified_at":{"type":"string","format":"timestamp-micros","airbyte_type":"timestamp_with_timezone"},"catalog_hash":{"type":"string"}}} to [Field{name=id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=catalog, type=STRING, mode=null, description=null, policyTags=null}, Field{name=created_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=modified_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=catalog_hash, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}].
2022-11-19 14:08:58 destination > BigQuery write config: BigQueryWriteConfig[streamName=actor_catalog, namespace=null, datasetId=airbyte, datasetLocation=EU, tmpTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=airbyte, tableId=_airbyte_tmp_pal_actor_catalog}}, targetTableId=GenericData{classInfo=[datasetId, projectId, tableId], {datasetId=airbyte, tableId=actor_catalog}}, tableSchema=Schema{fields=[Field{name=id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=catalog, type=STRING, mode=null, description=null, policyTags=null}, Field{name=created_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=modified_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}, Field{name=catalog_hash, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_ab_id, type=STRING, mode=null, description=null, policyTags=null}, Field{name=_airbyte_emitted_at, type=TIMESTAMP, mode=null, description=null, policyTags=null}]}, syncMode=overwrite, stagedFiles=[]]
Note the Field{name=catalog, type=STRING}Nataly Merezhuk (Airbyte)
11/28/2022, 8:37 PM