Data Lineage
After you successfully install Elementary, configured a connection profile and provided the permissions required to access the query history, it's time to create your data lineage graph using the lineage CLI.
1
edr lineage
Copied!

Commands

The lineage module has two commands:
1
# This command generates a lineage graph local file
2
edr lineage generate
3
4
# This command reads the local lineage file and opens a browser visualization
5
edr lineage
Copied!
Note that if a graph file exists localy, edr will always read it by default.
Every time you want to create a new updated graph, use edr lineage generate.

Commands example

1
# The tool is named edr (Elementary Data Reliability)
2
# Creates a lineage graph from queries executed between 2021-09-14 and current time,
3
# for the database my_db
4
5
edr lineage generate -s 2021-09-14 -dbs my_db
6
7
# Opens the graph in browser filtered on my_table downstream direction
8
edr lineage -t my_table+
Copied!

CLI options

When running the CLI, the following options may / should be used:
  • lineage generate - generate the graph from the query history of the selected dbs.
    • Timeframe filters - options for filtering the query history timeframe in lineage generate.
  • Dataset filters - options for filtering the datasets in the graph.
  • Others - additional execution options (table names, queries export, etc.).
The options for using the CLI, are all available and documented also when using
1
edr lineage --help
Copied!
Have a question