-
Notifications
You must be signed in to change notification settings - Fork 123
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
stage all external sources related to a source_name broken #327
Comments
can confirm I am having the same issue on 0.10.0 |
Also happening on Snowflake: packages:
- package: dbt-labs/dbt_external_tables
version: 0.10.0
- package: dbt-labs/codegen
version: 0.13.1
- package: dbt-labs/dbt_utils
version: 1.3.0 dbt Cloud latest |
Same issue on databricks |
yikes -- sorry everyone! my instinct is that #312's one-line change is to blame. @stegus64 @mikkosulonen @kyleburke-meq @bullamiders could one of you please try adding the this-- this
{% if src == node.source_name %}
-- not this
{% if src == node.name %} as soon as someone can validate that this resolves the issue, I can yank the release and cut a new version. cheers! |
I'm on vacation therefore I cannot valdiate it right now, but this was the only change to the macro in release 0.10.0. |
I can verify that undoing this change fixes the issue. |
This will resolve the issue. I had the same problem hier. |
FYI I've reverted the PR and released the change at |
Describe the bug
In Version 0.10.0 it is not possible anymore to stage all external sources related to a source_name.
In my understanding:
node.name
references a table in a source whilenode.source_name
references the whole sourceThe change introduced in the issue #309 and the related commit are probably the source, because the code part that handles a whole source is restricted to a single table now.
Steps to reproduce
Expected results
Actual results
Screenshots and log output
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
I only tested Redshift, but since the change was in
macros/common/stage_external_sources.sql
it probably affects all databases.The output of
dbt --version
:The operating system you're using:
Windows 11 Enterprise
The output of
python --version
:Python 3.10.15
Additional context
The text was updated successfully, but these errors were encountered: