-
Notifications
You must be signed in to change notification settings - Fork 79
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
prehook sql throw exception #129
Comments
@daniel-cortez-stevenson Hi, can this be related to #64? Thanks! |
Yea must be - we can fix that |
Removing
|
Appreciate the comment @nicor88 - after seeing this I thought that statements starting on the same line as the multi-line comment ends would be executed. I wouldn't remove the Do we agree that's a sufficient/wanted fix? |
@daniel-cortez-stevenson feel free to open a PR here: https://github.com/dbt-athena/dbt-athena The specific issue that I was having was cover by this pr: dbt-labs/dbt-athena#56 as somehow I thought as well to remove Anyhow, the development of Tomme/dbt-athena seems a bit stuck, the community did quite some progress on the new fork, have a look. |
I wanted to excute a pre_hook query like this
{{ config(materialized='view',pre_hook="drop table if exists my_first_dbt_model") }}
But I found that in athena , the sql become
-- /* {"app": "dbt", "dbt_version": "1.2.1", "profile_name": "local", "target_name": "dev", "node_id": "model.dbtest.my_first_dbt_model"} */ drop table if exists my_first_dbt_model
since all the sql stay in one line , the sql had been miss as a comment , It failed
The text was updated successfully, but these errors were encountered: