-
Notifications
You must be signed in to change notification settings - Fork 101
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
Recreating clustered columnstore index fails on sql server 2014 #84
Comments
@alangsbo so great to have people who can jump in and help provide a fix! This adapter makes columnstore indices the default unless otherewise specified. This is also creates an issue for some tiers of Azure SQL where columnstore indices aren't supported. You can either override this by adding models:
your_project_name:
+as_columnstore: false We have this snippet in our
|
sure! really excited about the growth of dbt-sqlserver and it´s nice to be a little part of it About the readme, I think it´s perfectly clear, it is me who have to work on my RTFM skills :) /A |
Hi! Actually reopening this after some consideration. This change will not affect whether clustered column store indexes are created or not, only the way they are created if they are set to be used Will make a branch with the changes which we can test /A |
Hi All!
I´ve setup a project using an sql server 2014 db and ran in to an error when running models: "Incorrect syntax near the keyword 'IF'..."
This seems to occur in the macro
sqlserver__create_clustered_columnstore_index
because of the syntaxDROP INDEX IF EXISTS {{relation_name}}.{{cci_name}}
which will not work in sql server 2014 where the sys tables has to be queried instead.I tried changing the code in my local fork to:
And it seems to work fine in my local dev environment
Br
Anders
The text was updated successfully, but these errors were encountered: