-
Notifications
You must be signed in to change notification settings - Fork 29
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
Cannot create tables out of SQL Select statements #68
Comments
what type of Azure synapse dedicated pools are you using: dedicated or serverless? My guess is you're using a serverless pool which do not support tables. You may want to try dbt-msft/dbt-synapse-serverless instead. Though huge caveat that serverless pools aren't that great of a solution for synapse today. |
weird! here's some questions:
|
Thanks @Rahul-Gajula. I’ll try to repro this error and see what I find |
Looking at the error message I see:
Any chance you can change your column types to not use |
Hi alieus and swanderz, Tried creating table as per the comments. Failed yet again. It's not even recognizing the Create Syntax |
Hey @Rahul-Gajula , if you’d like to test this, you’d have to run it directly in your synapse workspace. What you need to do is change the datatypes in your source tables from nvarchar(max) to nvarchar(n) and then run your select queries again in dbt. |
Hi alieus, Even with the data type nvarchar(n) i am not able to create a table. CREATE TABLE telemetry_test( |
where n is the size of the string in byte-pairs. For example, nvarchar(16). |
Glad to hear it! I’m sure this issue will definitely help someone else in the future. |
Out of all this I was able to generate the views from the select SQL statements against the database, but not the tables.
Note: Under dbt.project.yml i clearly defined the materialization as table to perform the action.
The text was updated successfully, but these errors were encountered: