Hello! Is anyone using Pipelinewise target-postgre...
# singer-targets
d
Hello! Is anyone using Pipelinewise target-postgres from the new GitHub repository? It seems the package referenced when installing
meltano add loader target-postgres --variant transferwise
is not updated anymore: https://pypi.org/project/pipelinewise-target-postgres/ The original repository is archived https://github.com/transferwise/pipelinewise-target-postgres And was moved to https://github.com/transferwise/pipelinewise/tree/master/singer-connectors/target-postgres but does not publish to pip anymore
e
I think there's a way to set up the
pip_url
to point to the pipelinewise subdirectory instead of PyPI, and we'll have to update our Hub plugins. Let me try it out.
d
I was able to make it sort of work:
Copy code
- name: target-postgres
      namespace: target_postgres
      pip_url: git+<https://github.com/transferwise/pipelinewise.git#subdirectory=singer-connectors/target-postgres>
      config:
        host: db-warehouse
        user: meltano
        dbname: data_warehouse
        add_metadata_columns: true
        default_target_schema: misc
However, env variables such as TARGET_POSTGRES_HOST are not accessible by the plugin And load_schema is also not working, all taps go to the
default_target_schema
e
can you remove the
namespace
?
d
Then it defaults to
meltanolabs
variant
If I set the variant to
transferwise
, it uses the pip version
e
then also set variant to
transferwise
If I set the variant to
transferwise
, it uses the pip version
even with the updated
pip_url
?
d
Sorry, I must have messed something in my earlier test, setting variant to
transferwise
makes the config and load_schema work as expected! I verified the tap is correctly using the version from git by checking if a bug merged yesterday was fixed
Indeed, I believe only a change in Meltano Hub plugin definition would suffice
e
Thanks for confirming this
pip_url
approach works! Let me know if there other pipelinewise connectors you use or know of that we should update: https://github.com/meltano/hub/issues/1887.
🙌 1
d
I believe all repositories have been merged 🤔 • tap-twilio • tap-slack • tap-salesforce • tap-google-analytics • ...
👍 1