Compilation error using Python in dbt #2028
hesteraarts
announced in
Archive
Replies: 1 comment 2 replies
-
hi @hesteraarts, can you provide more details on:
the code looks correct. another thing to check is the compiled Python code in something like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I just started using the new version of dbt where you can add Python models. I only get a strange compilation error even though I used the exact same code as in the example. Here is my code:
def model(dbt, session):
dbt.config(materialized="table")
activities = dbt.ref("Activities")
return activities.describe()
And here is my error:
Parsing Error in model marketing (models/staging/Copper/marketing.py)
In current version, model function should return only one dataframe object
The weird thing is, it worked before, exactly like this. Then I tried to write some Python code in this model, at some point got this error and then deleted all the adjustments. But the error stays. Can someone may be help me out? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions