-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added collection of used tables from Python notebooks and files and S…
…QL queries (#2772) ## Changes Users need the ability to track legacy table usage and lineage. This PR collects and stores table infos as part of linting jobs. This PR will be followed by 2 PRs for usage in queries, and for displaying results in the assessment dashboard. ### Linked issues None ### Functionality - [x] modified existing workflow: `assessment` - [x] added new tables and views ### Tests - [x] added unit tests - [x] updates integration tests --------- Co-authored-by: Eric Vergnaud <eric.vergnaud@databricks.com>
- Loading branch information
1 parent
437cf6b
commit 2eff7ee
Showing
20 changed files
with
688 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
SELECT | ||
catalog_name, | ||
schema_name, | ||
table_name, | ||
is_read, | ||
is_write, | ||
source_id, | ||
source_timestamp, | ||
source_lineage, | ||
assessment_start_timestamp, | ||
assessment_end_timestamp | ||
FROM $inventory.used_tables_in_paths | ||
UNION ALL | ||
SELECT | ||
catalog_name, | ||
schema_name, | ||
table_name, | ||
is_read, | ||
is_write, | ||
source_id, | ||
source_timestamp, | ||
source_lineage, | ||
assessment_start_timestamp, | ||
assessment_end_timestamp | ||
FROM $inventory.used_tables_in_queries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.