-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
log_column_level_metadata
macro raises error when ref
macro is overridden in dbt adaptor
#22358
Comments
We have a new way of collecting this column level metadata without the need for the Dagster dbt package. Mind trying it out to see if this resolves your issue? Instead of using the You'll need from dagster import AssetExecutionContext
from dagster_dbt import dbt_assets, DbtCliResource
@dbt_assets(manifest=...)
def my_dbt_assets(context: AssetExecutionContext, dbt: DbtCliResource):
yield from dbt.cli(["build"], context=context).stream().fetch_column_metadata() |
Thanks @rexledesma. I'll try this out next week and let you know the outcome. I've also opened the ticket dremio/dbt-dremio#232 to fix the overridden ref macro in the dbt-dremio adaptor. |
Hi @rexledesma. I did finally get around to trying the I haven't spent much time trying to understand the error, however I suspect that it is probably an issue in the dbt-dremio adaptor. I think the best path forward would be for me to contribute a fix to the
|
…eage (#22641) ## Summary & Motivation On issues like #22358 (comment), we should not fail the computation. Instead, we should surface the exception as a warning. ## How I Tested These Changes pytest
…eage (#22641) ## Summary & Motivation On issues like #22358 (comment), we should not fail the computation. Instead, we should surface the exception as a warning. ## How I Tested These Changes pytest
…eage (#22641) ## Summary & Motivation On issues like #22358 (comment), we should not fail the computation. Instead, we should surface the exception as a warning. ## How I Tested These Changes pytest
Dagster version
1.7.8
What's the issue?
This line of code raises the following exception when running against the dbt-dremio adaptor:
The problem arises because the
ref
macro has been overridden in the dbt-dremio adaptor (see here), and thelog_column_level_metadata
macro calls the ref macro with a "package" keyword argument that doesn't exist in the overridden macro.What did you expect to happen?
The
log_column_level_metadata
macro should not callref
using the "package" keyword argument. This method of calling ref is not documented as part of the public api. See the dbt documentation for examples for how ref is expected to be called.How to reproduce?
Might be hard to reproduce without standing up a Dremio instance.
Deployment type
Dagster Cloud
Deployment details
No response
Additional information
I'm happy to work on a fix for this issue, although I won't be able to make a start for the next week or so.
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered: