dbt python model run fails because it thinks the python model is SQL
I’m trying to run a dbt python model and the run fails because it takes the compiled python code for my model and wrapps create or replace table ... AS (
… )
around it.
Can dbt cloud execute python scripts?
I am pretty sure that natively this is not possible, but I might be wrong.
Do you know if I can execute Python scripts inside dbt? Not talking about python models.
I basically have a python code that generates Sql models based on informations that i give. I run it on VS code on my dbt-core.
But I wonder if I can execute it in the cloud.