-
Notifications
You must be signed in to change notification settings - Fork 126
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
[Bug]: INSERT statement's target must be a table #284
Comments
At a guess, does your dbt_project.yml look like this: models:
materialization: view If so you may be overriding the materialisation in the package, I would try changing it to: models:
your_project_name:
materialization: view and it should fix it. |
That is indeed the case, thank you kindly. Could you explain exactly how this works, or help me find the pertinent docs? I'm guessing there's a single global namespace that the main project can use to define a default materializations for all packages, but I'm not sure if this is intended dbt behavior that the packages appears unable to override the materializations defined there — it seems like more specific declarations should have precedence, as they do in other hierarchical attribute definitions like CSS. |
Overview
error
03:13:50 on-run-end failed, error: 03:13:50 001759 (42601): SQL compilation error: 03:13:50 INSERT statement's target must be a table
when I first install the package
How to reproduce
follow installation instructions, note that the model is materialized as a view
Expected behaviour
for the model executions to be a table and the run to succeed
Screenshots
Environment
Results of running
dbt --version
:Please paste the contents of your
packages.yml
file here:The text was updated successfully, but these errors were encountered: