This project can create statistic views to Azure Synapse Dedicated SQL Pool. Sqls used in models were created base on Azure synapse dedicated sql pool development guide.
- pip install dbt-core==1.3.0
- pip install dbt-synapse==1.3.0
Refer to Microsoftware's guide to download and install driver
Get Azure synapse dedicated sql pool connection details from synapse workspace management. Adding those info to dbt profile yml - profiles.yml. Sample config is like:
Profile location: $HOME/.dbt/profiles.yml
default:
target: synapse
outputs:
synapse:
type: synapse
driver: 'ODBC Driver 18 for SQL Server' # (The ODBC Driver installed on your system)
server: "host" # (Dedicated SQL endpoint of your workspace here)
port: 1433
database: "db name"
schema: "db schema"
user: "user"
password: "password"
Verify synapse connection:
- dbt debug
Try running the following commands:
- dbt run
- dbt test
- Learn more about dbt in the docs
- Learn about synapse dedicated sql pool