-
Notifications
You must be signed in to change notification settings - Fork 49
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
[Feature Request] Determine osmosis_progenitor
accurately at the same distance
#172
Comments
I was informed by @syou6162 that this is not a bug but rather an intended behavior. dbt-osmosis determines the propagation source based on the distance of nodes, and in the case of the same distance, it cannot make an exact determination.
Based on that, I have changed the issue title from a bug to a feature request. |
osmosis_progenitor:
Output When Using --add-progenitor-to-meta
Optionosmosis_progenitor
accurately at the same distance
Overview
When using the
--add-progenitor-to-meta
option, the resultingosmosis_progenitor:
values can sometimes be incorrect.Reproduction Steps
While I am currently investigating the exact scenarios that cause this issue, one example is provided below.
Consider the following set of models in a lineage graph (the letters
A
~C
next tofct_item_shops
denote the order of JOINs).You can view the actual code in the following repository:
https://github.com/yamamoto-yuta/dbt-osmosis-inheritance-check
In this case, the propagation sources for each column in
fct_item_shops
should be as follows:item_key
...raw_items
item_code
...raw_shop_items
shop_id
...raw_shop_items
However, the actual result is as follows, where the source of
item_code
is incorrectly identified asraw_items
instead ofraw_shop_items
.item_key
...raw_items
item_code
...raw_items
← Should beraw_shop_items
shop_id
...raw_shop_items
dbt-osmosis Execution Result
Execution Environment
The text was updated successfully, but these errors were encountered: