-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added collection of used tables from Python notebooks and files and SQL queries #2772
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9ab6ace
collect TableInfo in SQL linter
ericvergnaud ced75c3
collect table infos
ericvergnaud b3f4811
deduplicate code
ericvergnaud 0a2af4f
implement collectors for dfsas and tables
ericvergnaud f74bf08
Merge branch 'main' into collect-legacy-table-info
ericvergnaud 5cbeae1
fix failing tests
ericvergnaud 5a6552d
formatting
ericvergnaud e5856fa
progress
ericvergnaud a4fb53e
fix refactoring issues
ericvergnaud 89fadd8
add crawler and integrate
ericvergnaud fef2f68
formatting
ericvergnaud 1865680
rane TableInfo -> UsedTable
ericvergnaud 1541c75
improve test coverage
ericvergnaud 198bc9f
more test coverage
ericvergnaud a0567b4
drop stale code
ericvergnaud 4541dd1
Merge branch 'main' into increase-test-coverage
ericvergnaud 118b094
formatting
ericvergnaud 9cc3677
Merge branch 'increase-test-coverage' of github.com:databrickslabs/uc…
ericvergnaud 6421acc
Merge branch 'increase-test-coverage' into collect-legacy-table-info
ericvergnaud be59a8f
drop unused code
ericvergnaud 9b35060
more test coverage
ericvergnaud 5b9b763
more test coverage
ericvergnaud 21b7942
Merge branch 'increase-test-coverage' into collect-legacy-table-info
ericvergnaud c8abbb9
fix failing test
ericvergnaud bf8747b
Merge branch 'increase-test-coverage' into collect-legacy-table-info
ericvergnaud e0509b0
add is_read/is_write fields
ericvergnaud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also add
is_read
andis_write
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Populated for sql. For python calls, I suggest doing in a separate PR since it's a lot of work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate PR works