nick_james
04/22/2022, 10:09 PM- name: tap-postgres
variant: transferwise
pip_url: pipelinewise-tap-postgres
config:
dbname: swingleft
user: meltano
default_replication_method: FULL_TABLE
filter_schemas: public
select:
- actblue_contribution.*
nick_james
04/22/2022, 10:10 PMedgar_ramirez_mondragon
04/22/2022, 10:19 PMselect
is nested in the plugin config
but it should be at the same level as the latternick_james
04/22/2022, 10:21 PMnick_james
04/22/2022, 10:22 PMmessage=Selected streams: []
in the logsnick_james
04/22/2022, 10:22 PMnick_james
04/22/2022, 10:22 PMnick_james
04/22/2022, 10:22 PMedgar_ramirez_mondragon
04/22/2022, 10:23 PMnick_james
04/22/2022, 10:25 PMmeltano select tap-postgres actblue_contribution
nick_james
04/22/2022, 10:25 PMenvironments:
- name: dev
config:
plugins:
extractors:
- name: tap-postgres
select:
- actblue_contribution.*
- name: staging
- name: prod
nick_james
04/22/2022, 10:25 PMnick_james
04/22/2022, 10:26 PMedgar_ramirez_mondragon
04/22/2022, 10:31 PMselect
bit) and config and functionally separate, so the selected streams won't be displayed in that part of the UI. I'm not sure if they are shown somewhere else in the UI, though cc @alexmarple
Another thing I'm not sure is how environments (most relevant here, the default environment @cody_hanson @taylor ) play with the UI. It's not functionality we've tested together.nick_james
04/22/2022, 10:33 PM/output
, is that correct?edgar_ramirez_mondragon
04/22/2022, 10:35 PMnick_james
04/22/2022, 10:36 PMnick_james
04/22/2022, 10:39 PMmeltano init meltano
cd meltano
meltano add extractor tap-postgres
meltano config tap-postgres set host localhost
meltano config tap-postgres set port 5432
meltano config tap-postgres set user meltano
meltano config tap-postgres set password [[ PASSWORD ]]
meltano config tap-postgres set dbname [[ DBNAME ]]
meltano select tap-postgres [[ TABLENAME ]]
meltano add loader target-jsonl
meltano run tap-postgres target-jsonl
nick_james
04/22/2022, 10:40 PM➜ meltano run tap-postgres target-jsonl
2022-04-22T22:37:37.240606Z [info ] Environment 'dev' is active
2022-04-22T22:37:37.934829Z [info ] commands commands={}
2022-04-22T22:37:38.089381Z [warning ] No state was found, complete import.
2022-04-22T22:37:40.314796Z [info ] time=2022-04-22 15:37:40 name=tap_postgres level=INFO message=Selected streams: [] cmd_type=elb consumer=False name=tap-postgres producer=True stdio=stderr string_id=tap-postgres
2022-04-22T22:37:40.644974Z [info ] time=2022-04-22 15:37:40 name=tap_postgres level=INFO message=No streams marked as currently_syncing in state file cmd_type=elb consumer=False name=tap-postgres producer=True stdio=stderr string_id=tap-postgres
2022-04-22T22:37:40.678714Z [info ] Block run completed. block_type=ExtractLoadBlocks err=None set_number=0 success=True
nick_james
04/22/2022, 10:44 PMmeltano schedule pg-to-json tap-postgres target-jsonl @once
meltano schedule run pg-to-json
nick_james
04/22/2022, 10:44 PMnick_james
04/22/2022, 10:48 PMnick_james
04/22/2022, 11:56 PMnick_james
04/23/2022, 12:11 AMmeltano select --list --all
showed the full list of possible tables. they were all prefixed with their schema like public-{{TABLENAME}}
and when i changed it to public-{{TABLENAME}}.*
in my config it worked. Oddly, I had tried this before because I noticed the naming convention of the files it was writing when it was doing the entire schema. No idea why, but at least this one is solved.taylor
04/23/2022, 1:08 AMmessage=Selected streams: []
message was my clue and I was going to suggest reviewing what was actually selected 🙂