Skip to content

Commit 6076828

Browse files
authored
Added a widget with all jobs to track migration progress (#940)
## Changes Changing the Job query to fetch all the Job Details ### Linked issues close: #936 Resolves #936 ### Functionality - [ ] added relevant user documentation - [ ] added new CLI command - [ ] modified existing command: `databricks labs ucx ...` - [ ] added a new workflow - [ ] modified existing workflow: `...` - [ ] added a new table - [ ] modified existing table: `...` ### Tests <img width="1526" alt="Screenshot 2024-02-14 at 12 48 42 PM" src="https://github.com/databrickslabs/ucx/assets/127273819/d26336da-9ebf-4753-82ec-6c98fe621137"> - [x] manually tested - [ ] added unit tests - [ ] added integration tests - [ ] verified on staging environment (screenshot attached)
1 parent 3f778df commit 6076828

13 files changed

+15
-4
lines changed

src/databricks/labs/ucx/queries/assessment/main/03_0_all_tables.sql renamed to src/databricks/labs/ucx/queries/assessment/main/05_0_all_tables.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- viz type=table, name=Table Types, search_by=name, columns=name,type,format,storage,is_delta,location
2-
-- widget title=Table Types, row=5, col=0, size_x=6, size_y=8
2+
-- widget title=Table Types, row=5, col=0, size_x=3, size_y=8
33
SELECT CONCAT(tables.`database`, '.', tables.name) AS name,
44
object_type AS type,
55
table_format AS format,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- viz type=table, name=Job Details, search_by=job_name, columns=job_id,job_name,success,failures,creator
2+
-- widget title=Job Details, row=5, col=3, size_x=3, size_y=8
3+
SELECT
4+
job_id,
5+
job_name,
6+
success,
7+
failures,
8+
creator
9+
FROM $inventory.jobs
10+
WHERE job_name not like '[UCX]%'
11+
ORDER BY job_id DESC

src/databricks/labs/ucx/queries/assessment/main/05_0_clusters.sql renamed to src/databricks/labs/ucx/queries/assessment/main/06_0_clusters.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- viz type=table, name=Clusters, columns=failure,cluster_name,cluster_id,creator
2-
-- widget title=Incompatible clusters, row=5, col=0, size_x=3, size_y=8
2+
-- widget title=Incompatible clusters, row=6, col=0, size_x=3, size_y=8
33
SELECT EXPLODE(FROM_JSON(failures, 'array<string>')) AS failure,
44
cluster_id,
55
cluster_name,

0 commit comments

Comments
 (0)