TomasB
12/02/2022, 2:34 PM{
"streams": {
"public-NAME_OF_THE_TABLE": {
"force_fields": {
"NAME_OF_THE_COLUMN": {
"type": "STRING",
"mode": "REPEATED"
}
}
}
}
}
and the schema is:
public-NAME_OF_THE_TABLE schema: {
'type': 'object',
'properties': {
'id': {
'type': ['integer'], 'minimum': -9223372036854775808, 'maximum': 9223372036854775807
},
'NAME_OF_THE_COLUMN': {
'type': ['null', 'array'],
'items': {'$ref': '#/definitions/sdc_recursive_string_array'}
},
}
}
Unfortunately the load is still failing with error:
CRITICAL `$ref` path "
{
'type': ['null', 'string', 'array'],
'items': {'$ref': '#/definitions/sdc_recursive_string_array'}
}" is recursive
Does anyone have any example on a successful syncs with type arrays using tap-postgresql and target-bigquery?edgar_ramirez_mondragon
12/08/2022, 5:52 PM#/definitions/sdc_recursive_string_array look like?edgar_ramirez_mondragon
12/08/2022, 5:54 PMTomasB
12/08/2022, 6:36 PMedgar_ramirez_mondragon
12/08/2022, 7:04 PMHmm I have overwritten only the loaderI don’t understand what that means. Can you describe how you did that?
TomasB
12/08/2022, 7:05 PMTomasB
12/08/2022, 7:05 PM{
"streams": {
"public-NAME_OF_THE_TABLE": {
"force_fields": {
"NAME_OF_THE_COLUMN": {
"type": "STRING",
"mode": "REPEATED"
}
}
}
}
}edgar_ramirez_mondragon
12/08/2022, 7:05 PMedgar_ramirez_mondragon
12/08/2022, 7:05 PMTomasB
12/08/2022, 7:06 PMedgar_ramirez_mondragon
12/08/2022, 7:10 PMedgar_ramirez_mondragon
12/08/2022, 7:11 PMmeltano.yml?TomasB
12/08/2022, 7:15 PM.json file in a target-configs directory that we have created in the meltano project. The target config overwrite works for some other columns that were coming as RECORD and overwrote them to STRING but the array one isn't working as I have set it up like aboveedgar_ramirez_mondragon
12/08/2022, 7:20 PMforce_fields is working for other fields, I’d
• Look out for typos in the column name
• Dive in the target-bigquery venv under .meltano/loaders/target-bigquery/venv/lib/pythonX.Y/site-packages/target_bigquery/ and add tweak the code to emit a log message here: https://github.com/adswerve/target-bigquery/blob/74ea806e1c681bd5d731b96e2ae8cc6f04c8ad9a/target_bigquery/schema.py#L359-L365TomasB
12/14/2022, 9:01 PMTomasB
12/14/2022, 9:16 PM- name: tap-postgres
config:
schema:
public-NAME_OF_THE_TABLE:
NAME_OF_THE_COLUMN:
- type: ['null', array]
items:
type: string
metadata:
public-NAME_OF_THE_TABLE:
NAME_OF_THE_COLUMN:
- type: ['null', array]
items:
type: stringedgar_ramirez_mondragon
12/14/2022, 9:39 PM- name: tap-postgres
config:
schema:
public-NAME_OF_THE_TABLE:
NAME_OF_THE_COLUMN:
- type: ['null', array]
items:
type: string
metadata:
public-NAME_OF_THE_TABLE:
NAME_OF_THE_COLUMN:
type: ['null', array]
items:
type: stringTomasB
12/15/2022, 3:34 PMzach_nagengast
02/13/2023, 7:36 PMzach_nagengast
02/13/2023, 7:36 PM