Skip to content

Commit

Permalink
Fix 'No relation found' for models using alias
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Nakayama <[email protected]>
  • Loading branch information
civitaspo committed Jan 10, 2025
1 parent 37742ae commit eeef7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbt_osmosis/core/osmosis.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def get_table_ref(node: ResultNode | BaseRelation) -> TableRef:
elif node.resource_type == NodeType.Source:
return TableRef(node.database, node.schema, node.identifier or node.name)
else:
return TableRef(node.database, node.schema, node.name)
return TableRef(node.database, node.schema, node.alias or node.name)


_COLUMN_LIST_CACHE = {}
Expand Down

0 comments on commit eeef7fc

Please sign in to comment.