Guillaume Meyer
10/28/2024, 8:01 PM- name: target-postgres
variant: meltanolabs
pip_url: meltanolabs-target-postgres
config:
host: ${INGESTION_DB_HOST}
port: ${INGESTION_DB_PORT}
database: ${INGESTION_DB_NAME}
user: ${INGESTION_DB_USER}
password: ${INGESTION_DB_PASSWORD}
ssl_mode: ${INGESTION_DB_SSL_MODE}
default_target_schema: ${INGESTION_DB_SCHEMA}
_`# https://sdk.meltano.com/en/latest/stream_maps.html`_
stream_maps:
"*":
__alias__: config['tables_prefix'] + __stream_name__
stream_map_config:
tables_prefix: ${TABLES_PREFIX}
But after running the job, the Python evaluation is not executed and I end up with a table config['tables_prefix'] + __stream_name__
Guillaume Meyer
10/28/2024, 8:01 PMGuillaume Meyer
10/28/2024, 8:09 PMEdgar Ramírez (Arch.dev)
10/28/2024, 8:37 PM__stream_name__
is an upcoming feature of the Singer SDK, which doesn't have a final release yet: https://sdk.meltano.com/en/latest/stream_maps.html#built-in-alias-variable-names
Once it's released, we generally update target-postgres fairly quickly.
I'm also planning on doing pre-releases of target-postgres that in turn use pre-release versions of singer-sdk, but that's a bit down the line.Guillaume Meyer
10/28/2024, 9:08 PMEdgar Ramírez (Arch.dev)
10/29/2024, 7:27 PMpip_url
in meltano.yml
to get the bleeding edge.Edgar Ramírez (Arch.dev)
10/29/2024, 8:05 PMpip_url: meltanolabs-target-postgres==0.1.0a1
Guillaume Meyer
10/31/2024, 2:50 PM