-
Notifications
You must be signed in to change notification settings - Fork 80
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
+731
−230
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
ced75c3
collect table infos
b3f4811
deduplicate code
0a2af4f
implement collectors for dfsas and tables
f74bf08
Merge branch 'main' into collect-legacy-table-info
5cbeae1
fix failing tests
5a6552d
formatting
e5856fa
progress
a4fb53e
fix refactoring issues
89fadd8
add crawler and integrate
fef2f68
formatting
1865680
rane TableInfo -> UsedTable
1541c75
improve test coverage
198bc9f
more test coverage
a0567b4
drop stale code
4541dd1
Merge branch 'main' into increase-test-coverage
ericvergnaud 118b094
formatting
9cc3677
Merge branch 'increase-test-coverage' of github.com:databrickslabs/uc…
6421acc
Merge branch 'increase-test-coverage' into collect-legacy-table-info
be59a8f
drop unused code
9b35060
more test coverage
5b9b763
more test coverage
21b7942
Merge branch 'increase-test-coverage' into collect-legacy-table-info
c8abbb9
fix failing test
bf8747b
Merge branch 'increase-test-coverage' into collect-legacy-table-info
e0509b0
add is_read/is_write fields
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