-
Notifications
You must be signed in to change notification settings - Fork 76
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
Add option to autocreate schema if not present? #198
Comments
I had a similar question for the Snowflake target. Andrew suggested it be included in the SQL base code in this project datamill-co/target-snowflake#22 |
it feels like schemas should be created by |
Nevermind! It's the |
Is this something the community could contribute to? As this is something we're running into as well. |
Is this issue dead? Would be great to have this feature |
If I run
target-postgres
withpostgres_schema
set to a schema that does not exist at the start of the job, the code fails with the following error:I can get around this by manually creating the schema, or possibly adding the schema creation to
before_run_sql
, but it feels a little cumbersome, especially if I have other SQL to run before execution.Would it make sense to add a new boolean option like
autocreate_schema
to issue the schema creation command if it is not there? It could beFalse
by default to maintain the current behaviour if needed.The text was updated successfully, but these errors were encountered: