Open leo-schick opened 1 year ago
Maybe by detecting if the script runs in a SQL serverless pool or not. I couldn't figure out how this is possible in TSQL.
@leo-schick what a clever workaround! honestly, implementing this macro in this repo would be a great first step tbh
Currently the Serverless Pool is not supported by this module, because the
RENAME
command is not supported, which is in use in macrosqlserver__rename_relation
.I found an alternative way to rename e.g. a SQL view by running
This only supports SQL VIEWs, but that is all what you will probably be doing. (ok, maybe external tables... but I don't know if dbt supports them).
I made my dbt project now work by using the macro:
Does someone have an idea how to implement this into package
dbt-synapse
?