|
| 1 | +# Lineage View |
| 2 | + |
| 3 | +The **Lineage View** panel is a feature of the Datacoves VSCode extension that provides a visual representation of the lineage of your project. This tool helps you quickly understand how data flows between models, sources, and downstream dependencies within your dbt project. |
| 4 | + |
| 5 | +## What is the Lineage View? |
| 6 | + |
| 7 | +The Lineage View displays a graph of your dbt model's relationships, showing both upstream and downstream dependencies. This visualization makes it easy to: |
| 8 | + |
| 9 | +- See which sources and models feed into your current model |
| 10 | +- Identify all models and reports that depend on your current model |
| 11 | +- Understand the impact of changes to a model across your project |
| 12 | + |
| 13 | +## Usage |
| 14 | + |
| 15 | +The basic usage of Lineage View consists of the following steps: |
| 16 | + |
| 17 | +1. **Open a dbt model or yml file** in your VSCode workspace. |
| 18 | +2. Locate the **Lineage View** panel, typically found in the lower panel (alongside Terminal, Output, Datacoves) |
| 19 | +3. The panel will automatically display the lineage graph for the currently sql or yml file. |
| 20 | + |
| 21 | +### Additional features |
| 22 | + |
| 23 | +In addition to seeing your model(s) lineage, you can also: |
| 24 | + |
| 25 | +- **Single-click** on a node to open the SQL file. |
| 26 | +- **Double-click** on a node to open the YML file. |
| 27 | +- **Right click** a node and perform a dbt action(run, test, compile, open files, etc) |
| 28 | + |
| 29 | +You can also look up other dbt models and change the parent and child nodes displayed using one of the following: |
| 30 | + - `{n}+my_model` |
| 31 | + - `my_model+{n}` |
| 32 | + - `{n}+my_model+{n}` |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +## Configuration |
| 37 | + |
| 38 | +Lineage Panel has 3 configurable settings. As with any VSCode setting, these can be [overridden](/how-tos/vscode/override) in the `settings.json` file located in `workspace/.vscode/settings.json`: |
| 39 | + |
| 40 | +- Default Expansion (`dbt.lineage.defaultExpansion`: number): How many nodes should expand by default for the currently-opened model. |
0 commit comments