Replies: 1 comment
|
Short version: dbt-spark can't run Python models against a local When dbt-spark first got Python models it leaned on a Databricks-specific API to push the Python out to a cluster, and nobody's built the open-source Spark equivalent since. The docs line up with that: the only platforms that list Python model support are Snowflake, BigQuery, and Databricks. So your SQL models will run fine over If you actually need the PySpark transform, two ways out that work today:
Not the answer you were hoping for, but it saves you chasing a profile combo that can't exist yet. |
Uh oh!
There was an error while loading. Please reload this page.
I have setup pyspark in wsl (windows 11) with hive support and metastore enabled and working with spark-sql which is working as expected. I have now installed dbt-spark with dbt-spark[session] adaptor. What I want is to be able to create python dbt models with the following configuration in my profiles.yml:
As you can see I am trying to run my python model using an active local spark session (method:session).
I run my python model via a entry point python script which creates a PySpark session before calling dbtRunner dbt.invoke method as shown below:
However when I run this I get the following error:
Databricks cluster_id is required for all_purpose_cluster submission method with running with notebook.Even though I am not using the dbt-databricks adaptor and have requested the method:session
Does anyone know what the issue is here and If I am missing some config ?
All reactions