Samuel Nogueira Farrus
01/17/2025, 2:18 PMmeltano.yml
:
version: 1
default_environment: prod
project_id: some_project_id
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
config:
host: source_db_host
port: source_db_port
database: source_db_name
user: source_db_user
max_record_count: 5000
select:
- schema-table.'*'
loaders:
- name: target-postgres
variant: meltanolabs
pip_url: meltanolabs-target-postgres
config:
host: dw_host
port: dw_port
database: dw_name
user: dw_user
use_copy: true
default_target_schema: dw_schema
mappers:
- name: meltano-map-transformer
variant: meltano
pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git>
mappings:
- name: rename
config:
stream_maps:
table:
__alias__: table_new_name
But when I run meltano run tap-postgres rename target-postgres
, the result table still is dw_schema.table
instead of dw_schema.table_new_name
. Anyone knows what am I doing wrong?Reuben (Matatika)
01/17/2025, 3:57 PMmeltano select tap-postgres --list
to check stream names.
stream_maps:
dw_schema__table:
__alias__: table_new_name
Edgar Ramírez (Arch.dev)
01/17/2025, 4:59 PMschema-table
, it should be
stream_maps:
schema-table:
__alias__: table_new_name
Samuel Nogueira Farrus
01/17/2025, 5:10 PMstream_maps:
schema-table:
__alias__: table_new_name
the new table is created, but no data is inserted. Also, the table columns are not created, only the _`_sdc_*`_ ones. Any ideas?Samuel Nogueira Farrus
01/17/2025, 5:14 PMEdgar Ramírez (Arch.dev)
01/17/2025, 6:31 PMmeltano select tap-postgres --list
?Samuel Nogueira Farrus
01/17/2025, 7:15 PMmeltano select tap-postgres --list
2025-01-17T19:12:22.456161Z [warning ] Failed to create symlink to 'meltano.exe': administrator privilege required
2025-01-17T19:12:22.463313Z [info ] The default environment 'prod' will be ignored for `meltano select`. To configure a specific environment, please use the option `--environment=<environment name>`.
Legend:
selected
excluded
automatic
unsupported
Enabled patterns:
schema-table.'*'
Selected attributes:
Reuben (Matatika)
01/17/2025, 7:54 PMschema-table.'*'
to 'schema-table.*'
and try it? Also, if you run with --all
(meltano select tap-postgres --list --all
) you can see what is deselected as well, which may help debug here.Samuel Nogueira Farrus
01/17/2025, 7:57 PM'schema-table.*'
worked like a charm!