Skip to content

Commit

Permalink
Feature/catalog relational objects (#3922)
Browse files Browse the repository at this point in the history
* filter to relational nodes

* cleanup

* flake formatting

* changelog
  • Loading branch information
dave-connors-3 authored Sep 23, 2021
1 parent e7e1207 commit f4f5d31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
### Under the hood

- Enact deprecation for `materialization-return` and replace deprecation warning with an exception. ([#3896](https://github.com/dbt-labs/dbt/issues/3896))
- Build catalog for only relational, non-ephemeral nodes in the graph ([#3920](https://github.com/dbt-labs/dbt/issues/3920))

Contributors:

- [@dave-connors-3](https://github.com/dave-connors-3) ([#3920](https://github.com/dbt-labs/dbt/issues/3920))

## dbt 0.21.0 (Release TBD)

Expand Down
4 changes: 3 additions & 1 deletion core/dbt/adapters/base/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ def _get_catalog_schemas(self, manifest: Manifest) -> SchemaSearchMap:
"""
info_schema_name_map = SchemaSearchMap()
nodes: Iterator[CompileResultNode] = chain(
manifest.nodes.values(),
[node for node in manifest.nodes.values() if (
node.is_relational and not node.is_ephemeral_model
)],
manifest.sources.values(),
)
for node in nodes:
Expand Down

0 comments on commit f4f5d31

Please sign in to comment.