Jeff Chen
11/25/2024, 2:59 PMEdgar Ramírez (Arch.dev)
11/25/2024, 3:40 PMmeltano invoke tap-mssql --discover > catalog.json
? We're looking for the _sdc_table_version
in catalog.json
.Leon Klaus
11/26/2024, 7:52 AM{
"streams": [
{
"tap_stream_id": "crm-contact_extract",
"table_name": "contact_extract",
"schema": {
"properties": {
"country_code": {
"inclusion": "available",
"maxLength": 2,
"type": [
"null",
"string"
]
},
"id": {
"inclusion": "available",
"minimum": -2147483648,
"maximum": 2147483647,
"type": [
"null",
"integer"
]
}
},
"type": "object"
},
"stream": "contact_extract",
"metadata": [
{
"breadcrumb": [],
"metadata": {
"selected-by-default": false,
"database-name": "crm",
"is-view": false,
"table-key-properties": []
}
},
{
"breadcrumb": [
"properties",
"country_code"
],
"metadata": {
"selected-by-default": true,
"sql-datatype": "varchar"
}
},
{
"breadcrumb": [
"properties",
"id"
],
"metadata": {
"selected-by-default": true,
"sql-datatype": "int"
}
}
]
}
]
}
This is the catalog.json. There is no _sdc_table_version
so it seems like this is added by the target-mssql
Edgar Ramírez (Arch.dev)
11/26/2024, 3:57 PMadd_record_metadata
setting. The rest of the "activate version" logic doesn't make sense without that column in there, so I'm not sure how we should proceed. Perhaps a new setting meant to ignore ACTIVATE_VERSION
messages entirely? 🤔
Definitely feel free to create an issue or even send a pull request.Jeff Chen
11/27/2024, 8:20 AM{"type":"STATE","value":{"currently_syncing":"crm-contact"}}
{"type":"SCHEMA","stream":"crm-contact","schema":{"properties":{"country_code":{"inclusion":"available","maxLength":2,"type":["null","string"]},"id":{"inclusion":"available","minimum":-2147483648,"maximum":2147483647,"type":["null","integer"]}},"type":"object"},"key_properties":[]}
{"type":"ACTIVATE_VERSION","stream":"crm-contact","version":1732695221437}
{"type":"RECORD","stream":"crm-contact","record":{"country_code":"US","id":1},"version":1732695221437,"time_extracted":"2024-11-27T08:13:41.445465Z"}
{"type":"RECORD","stream":"crm-contact","record":{"country_code":"US","id":2},"version":1732695221437,"time_extracted":"2024-11-27T08:13:41.445465Z"}
{"type":"RECORD","stream":"crm-contact","record":{"country_code":"US","id":3},"version":1732695221437,"time_extracted":"2024-11-27T08:13:41.445465Z"}
{"type":"RECORD","stream":"crm-contact","record":{"country_code":"US","id":4},"version":1732695221437,"time_extracted":"2024-11-27T08:13:41.445465Z"}
{"type":"RECORD","stream":"crm-contact","record":{"country_code":"US","id":5},"version":1732695221437,"time_extracted":"2024-11-27T08:13:41.445465Z"}
{"type":"STATE","value":{"currently_syncing":"crm-contact"}}
{"type":"ACTIVATE_VERSION","stream":"crm-contact","version":1732695221437}
{"type":"STATE","value":{"currently_syncing":"crm-contact","bookmarks":{"crm-contact":{"initial_full_table_complete":true}}}}
{"type":"STATE","value":{"currently_syncing":null,"bookmarks":{"crm-contact":{"initial_full_table_complete":true}}}}
So even if add_record_metadata is set to false, _sdc_table_version will still appear in the table and only its value becomes NULL because of "type":"ACTIVATE_VERSION",...Edgar Ramírez (Arch.dev)
11/27/2024, 5:36 PMJeff Chen
11/28/2024, 7:48 AM