-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Target DB placeholder not available during singledb mode parsing #97
Comments
@AndreiTapai , should be fixed in Placeholder Thank you for pointing this out. We do not use SingleDB mode internally, so some issues might be present. I'll see if I can add more tests regarding to SingleDB mode specifically. |
This worked. Thank you for the update. |
Describe the bug
While parsing a function (yaml with !include, sql file in sql/my_file.sql) i get back an error
ValueError: Unknown placeholder [TARGET_DB]
Expected behavior
According to the docs, this placeholder should always be available when the parameter
--target-db
is passed.Can't attach log or yaml config sadly - however I was able to pinpoint the issue:
In singledb
init_config
the callconfig=super().init_config()
happens before the target_db placeholder is set. Then, in super.init_config, the attempt to parse blueprints happens at line 281-282. This fails because of the missing target db placeholder.Hopefully that is enough context. Let me know. I will try passing in the placeholder explicitly via command line until this is fixed.
The text was updated successfully, but these errors were encountered: