-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-1393] Macro in BigQuery takes no keyword argument 'relation' #6129
Comments
hi @Larchenko-Ksenia, I wasn't able to reproduce this -- are you thinking that this is related to Python models, the I copied over the macro to {% macro create_udfs() %}
{% do adapter.create_schema(api.Relation.create(database=target.database, schema="user_defined_functions")) %}
{#
{{f_beauty_string_source()}}
{{f_process_json_source_proxy()}}
{{f_decode_uri_component()}}
#}
{% endmacro %} I created a couple on-run-start:
- "{{ create_udfs() }}" for good measure, I also called the macro from one of the SQL models. in all cases, with or without are there any more details you can provide to help us investigate and ideally reproduce? |
What's the output of |
Hello, @lostmygithubaccount, @jtcohen6, @jeremyyeo, @dataders, |
thanks! will throw the |
@Larchenko-Ksenia from @jtcohen6 internally -- summarizing, the
let us know if that's the issue |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
1 similar comment
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
I found my issue. I think both me and @Larchenko-Ksenia visited this thread and copy pasted their solution with a macro called
It seems like this is where the collision happened. Removing the |
Is this a new bug in dbt-core?
Current Behavior
Have created 2 python models and 2 sql simple models, dbt version == 1.3.0.
When trying to launch "dbt compile --profiles-dir C:\Users\path_to_profile_file" or "dbt run" with profiles dir got the following:
Expected Behavior
Successful models running and compilation within dbt=1.3.0.
The SQL models were launched within dbt version == 1.0.0, and there vere no issues, as usual.
Steps To Reproduce
Relevant log output
Environment
Which database adapter are you using with dbt?
bigquery
Additional Context
Macro create_udfs
The text was updated successfully, but these errors were encountered: