dean_morin
07/08/2021, 10:53 PMpipelinewise-tap-postgres==1.8.0
& pipelinewise-target-snowflake==1.12.0
. I’m using log-based replication. All except one table end up doing a full table extract every time before moving on to log based.
In between runs, payload
in the run
table in the meltano db looks like:
{
"singer_state": {
"currently_syncing": null,
"bookmarks": {
"public-table_one": {
"last_replication_method": "LOG_BASED",
"lsn": 1286946685864,
"version": 1622778419625
}
}
}
}
When the job starts, the first thing it does is (logs for the tap):
Beginning sync of stream(public-table_two) with sync method(logical_initial)
Performing initial full table sync
Current Server Encoding: UTF8
Current Client Encoding: UTF8
hstore is UNavailable
Beginning new Full Table replication 1625783275746
After it writes the first batch to snowflake, the target logs:
Emitting state
{
"currently_syncing": "public-discrepancy",
"bookmarks": {
"public-table_one": {
"last_replication_method": "LOG_BASED",
"lsn": 1286946685864,
"version": 1622778419625
},
"public-table_two": {
"last_replication_method": "LOG_BASED",
"lsn": 1287349339280,
"version": 1625783275746,
"xmin": 31435
},
"public-table_three": {
"last_replication_method": "LOG_BASED"
},
"public-table_four": {
"last_replication_method": "LOG_BASED"
}
}
}
However it continues to do a sync method(logical_initial) for every table in turn. Only table_one
avoids this. Any ideas?aaronsteers
07/08/2021, 11:02 PMaaronsteers
07/08/2021, 11:04 PMaaronsteers
07/08/2021, 11:04 PMdean_morin
07/08/2021, 11:09 PMdean_morin
07/08/2021, 11:13 PMversion: 1
plugins:
extractors:
- name: tap-postgres
variant: transferwise
pip_url: pipelinewise-tap-postgres==1.8.0
config:
filter_schemas: public
default_replication_method: LOG_BASED
- name: tap-compliance
inherit_from: tap-postgres
config:
dbname: compliance
select_filter:
- _meltano.heartbeat
- public-table_one
- public-table_two
- public-table_three
- public-table_four
loaders:
- name: target-snowflake
variant: transferwise
pip_url: pipelinewise-target-snowflake==1.12.0
config:
dbname: MELTANO
warehouse: MELTANO
user: MELTANO_ROBOT
file_format: FILE_FORMATS.CSV
role: MELTANO
schema_mapping:
_meltano:
target_schema: _MELTANO
- name: target-snowflake-compliance
inherit_from: target-snowflake
config:
schema_mapping:
public:
target_schema: COMPLIANCE
dean_morin
07/08/2021, 11:21 PM_MELTANO
in snowflake doesn’t actually get created in snowflake. Let me try removing the leading underscore.dean_morin
07/09/2021, 5:42 PMdean_morin
07/10/2021, 12:26 AMpipeline-tap-postgres
from 1.7.1
to 1.8.0
, and meltano
from 1.74.0
to '1.77.0
.dean_morin
07/10/2021, 12:27 AMmeltano upgrade
after updating the base meltano docker image, at least for some of the upgradesdean_morin
07/12/2021, 11:49 PMsync method(logical_initial)