-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collect direct filesystem access from queries (#2599)
## Changes Adds support for extracting DirectFileSystemAccess records from workspace queries ### Linked issues Resolves #2350 ### Functionality - [x] added a new table `directfs_in_queries` - [x] added a new view `directfs` unioning `directfs_in_paths` with the above ### Tests - [x] added unit tests - [x] manually tested schema upgrade: ![Screenshot 2024-09-13 at 16 17 22](https://github.com/user-attachments/assets/52b19491-66f4-480b-b843-185dc73a6893) Integration with ExperimentalWorkflowLinter will be done in a separate PR --------- Co-authored-by: Eric Vergnaud <eric.vergnaud@databricks.com> Co-authored-by: Serge Smertin <259697+nfx@users.noreply.github.com> Co-authored-by: Andrew Snare <asnare@users.noreply.github.com>
- Loading branch information
1 parent
67d91b9
commit fa5b7b8
Showing
9 changed files
with
243 additions
and
91 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
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,27 @@ | ||
SELECT | ||
path, | ||
is_read, | ||
is_write, | ||
source_id, | ||
source_timestamp, | ||
source_lineage, | ||
assessment_start_timestamp, | ||
assessment_end_timestamp, | ||
job_id, | ||
job_name, | ||
task_key | ||
FROM $inventory.directfs_in_paths | ||
UNION ALL | ||
SELECT | ||
path, | ||
is_read, | ||
is_write, | ||
source_id, | ||
source_timestamp, | ||
source_lineage, | ||
assessment_start_timestamp, | ||
assessment_end_timestamp, | ||
NULL as job_id, | ||
NULL as job_name, | ||
null as task_key | ||
FROM $inventory.directfs_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
Oops, something went wrong.