Skip to content
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

Unable to use post_hook after_commit #444

Open
ericmuijs opened this issue Aug 24, 2023 · 0 comments
Open

Unable to use post_hook after_commit #444

ericmuijs opened this issue Aug 24, 2023 · 0 comments

Comments

@ericmuijs
Copy link

{{ 
    config(
        materialized='table', 
        unique_key='pk_project',
        as_columnstore=false,
        post_hook=after_commit("SELECT 1")
    ) 
}}

Running with the above config, simplest SQL code for a post hook, I get an error:

('25000', '[25000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION. (3902) (SQLExecDirectW)')

Adding after_commit seems to execute an empty "commit;" to the database. Do I have my setup wrong?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant