duncan_fermor
07/11/2022, 11:29 PMtap-postgres and target-postgres (Pipelinewise variants in both cases). Incremental replication. Blank destination database at this stage.
I would like to exclude some columns from being extracted.
I have tried config like the following, which should include columns a, b and c, and then exclude `d`:
select:
- public-foo.a
- public-foo.b
- public-foo.c
# - public-foo.d - commented out - so should be excluded
And also:
select:
- public-foo.a
- public-foo.b
- public-foo.c
- "!public-foo.d"
As per the documentation here: https://docs.meltano.com/concepts/plugins#how-to-use-3
I’ve also tried excluding the column through select_filter.
In each case, the output of meltano select tap-postgres --list --all says the column has been excluded.
But it doesn’t work - I still end up with the extra column, populated with data, in the destination database. Is this a bug? Or am I missing something?will_johnson
07/12/2022, 12:45 AMduncan_fermor
07/12/2022, 1:14 AMhuiming
07/14/2022, 1:22 PMwill_johnson
07/14/2022, 3:22 PMhuiming
07/14/2022, 6:36 PMduncan_fermor
07/14/2022, 9:39 PMmappers:
- name: meltano-map-transformer
pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git@v0.0.4>
mappings:
- name: column-remover
config:
stream_maps:
public-<table_name>: # or whatever your stream name is from tap-postgres
<column_name>: nullhuiming
07/14/2022, 11:10 PM