josh_lloyd
07/14/2022, 6:11 PMtable-key-properties metadata property as so:
- name: tap-mysql--XXXX
inherit_from: tap-mysql
metadata:
YYYY-conversionfileformats:
table-key-properties:
- conversionId
- format
meltano verison 2.1.0
transferwise variant of tap-mysql
I’ve tried every configuration of the names of the two desired primary key columns but every time I look at the SCHEMA message in the tap output the key_properties value is always []. Thoughts?edgar_ramirez_mondragon
07/14/2022, 6:31 PMedgar_ramirez_mondragon
07/14/2022, 6:32 PMmeltano config --extras tap-mysql--XXXX
?josh_lloyd
07/14/2022, 6:33 PM{
"_catalog": null,
"_state": null,
"_load_schema": "tap_mysql__XXXX",
"_select": [
"YYYY-conversionfileformats.*"
],
"_metadata": {
"*": {
"replication-method": "FULL_TABLE"
}
},
"_schema": {},
"_select_filter": [],
"_metadata.*.replication-method": "FULL_TABLE",
"_metadata.YYYY-conversionfileformats.table-key-properties": [
"conversionId",
"format"
]
}josh_lloyd
07/14/2022, 6:33 PMedgar_ramirez_mondragon
07/14/2022, 6:39 PM_metadata does not include the keys you need, even though the flattened values are there. That does seem like the issue I linked above. Is it possible for you to install from the branch to test the fix or see if it’s a new and different issue?
You can install the branch with
pipx install --force --suffix="@6404" --python=python3.9 'meltano @ git+<https://github.com/meltano/meltano.git@6380-metadata-and-other-extras-of-kind-object-not-honored-when-using-inheritance>'josh_lloyd
07/14/2022, 6:40 PMedgar_ramirez_mondragon
07/14/2022, 6:42 PMmeltano@6404 config --extras tap-mysql--XXXXjosh_lloyd
07/14/2022, 6:45 PMSCHEMA message and here is the output of the config command:
{
"_catalog": null,
"_state": null,
"_load_schema": "tap_mysql__XXXX",
"_select": [
"YYYY-conversionfileformats.*"
],
"_metadata": {
"*": {
"replication-method": "FULL_TABLE"
},
"YYYY-conversionfileformats": {
"table-key-properties": [
"conversionId",
"format"
]
}
},
"_schema": {},
"_select_filter": [],
"_metadata.*.replication-method": "FULL_TABLE",
"_metadata.YYYY-conversionfileformats.table-key-properties": [
"conversionId",
"format"
]
}edgar_ramirez_mondragon
07/14/2022, 6:50 PMjosh_lloyd
07/14/2022, 6:51 PMedgar_ramirez_mondragon
07/14/2022, 7:02 PM