[BUG] Could not find adapter algo test_relationship
Closed this issue · 3 comments
Svendewaard commented
Describe the bug
This actually used to work before, but ever since we moved to dbt-cloud and getting the manifest from there, I can no longer manage to specify a custom name for relationship tests.
To Reproduce
- Specify environment variables in .env file
- In a Python script, load the variables
- Run the command:
dbterd run --dbt-cloud -s schema:MARTS --entity-name-format schema.table -a "test_relationship:(name:foreignKey|c_from:column_name|c_to:field)" - catalog.json and manifest.json are correctly loaded (status 200)
- Error is produced:
Exception: Could not find adapter algo test_relationship:(name:foreignKey|c_from:column_name|c_to:field)!
Expected behavior
The DBML file is properly generated with all relationships.
Desktop (please complete the following information):
- OS: Windows
dbterd --version
's output [e.g. 1.7.1]: 1.13.4- Our dbt cloud is on 1.7.14
Svendewaard commented
Perhaps I am doing something wrong, but then please also let me know 😄
datnguye commented
@Svendewaard thanks for raising it!
It might be an issue with the recent refactoring, I will check it out tmr and, if needed, to fix it in 1.13.5 right after that.
datnguye commented
1.13.5 is published now 👍
Please help to check it out, feel free to reopen the issue if it's still persisted.
By the way, your command should be:
dbterd run --dbt-cloud -s schema:MARTS --entity-name-format schema.table -a "test_relationship:(name:foreign_key|c_from:column_name|c_to:field)"