I’m almost done writing my source connector, however I ran into trouble when running acceptance tests.
TestIncremental.test_two_sequential_reads and TestIncremental.test_read_sequential_slices keep failing. I suspect my configured catalog for tests is incorrect.
Here is my configured_catalog.json:
{
"streams": [
{
"stream": {
"name": "views",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["ym:pv:dateTime"],
"source_defined_primary_key": [["ym:pv:watchID"]]
},
"sync_mode": "incremental",
"cursor_field": ["ym:pv:dateTime"],
"destination_sync_mode": "overwrite",
"primary_key": [["ym:pv:watchID"]]
},
{
"stream": {
"name": "sessions",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["ym:s:dateTime"],
"source_defined_primary_key": [["ym:s:visitID"]]
},
"sync_mode": "incremental",
"cursor_field": ["ym:s:dateTime"],
"destination_sync_mode": "append",
"primary_key": [["ym:s:visitID"]]
}
]
}
Here is the repo: airbyte/airbyte-integrations/connectors/source-yandex-metrica at source-yandex-metrica · ernestasga/airbyte · GitHub