Skip to content

Commit edae305

Browse files
JCZuurmondgueniai
andauthored
Add dashboards to migration progress dashboard (#3314)
## Changes Add linting resources to migration progress dashboard ### Linked issues - [x] Depends on #3424 - [x] Progresses #3045 - [x] Breaks up #3112 ### Functionality - [x] modified existing dashboard: `Migration [main]` ### Tests - [x] modified unit tests - [x] modified integration tests --------- Co-authored-by: Guenia Izquierdo Delgado <guenia.izquierdo@databricks.com>
1 parent 451bcc5 commit edae305

19 files changed

+584
-70
lines changed

src/databricks/labs/ucx/queries/progress/main/01_0_percentage_migration_progress.sql renamed to src/databricks/labs/ucx/queries/progress/main/01_00_percentage_migration_progress.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
SELECT
33
ROUND(100 * try_divide(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage
44
FROM ucx_catalog.multiworkspace.objects_snapshot
5-
WHERE object_type IN ('ClusterInfo', 'Grant', 'JobInfo', 'PipelineInfo', 'PolicyInfo', 'Table', 'Udf')
5+
WHERE object_type IN ('ClusterInfo', 'Grant', 'Dashboard', 'JobInfo', 'PipelineInfo', 'PolicyInfo', 'Table', 'Udf')

src/databricks/labs/ucx/queries/progress/main/01_5_percentage_table_migration_progress.sql renamed to src/databricks/labs/ucx/queries/progress/main/01_05_percentage_table_migration_progress.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* --title 'Table migration progress (%)' --width 2 */
1+
/* --title 'Table migration progress (%)' */
22
SELECT
33
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage
44
FROM ucx_catalog.multiworkspace.objects_snapshot
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* --title 'Dashboard progress (%)' */
2+
SELECT
3+
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage
4+
FROM ucx_catalog.multiworkspace.objects_snapshot
5+
WHERE object_type = "Dashboard"

src/databricks/labs/ucx/queries/progress/main/02_4_migration_status_by_owner_overview.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* --title 'Overview' --description 'Tables and views migration' --width 5 */
22
WITH migration_statuses AS (
3-
SELECT *
3+
SELECT owner, failures
44
FROM ucx_catalog.multiworkspace.objects_snapshot
55
WHERE object_type = 'Table'
66
)

0 commit comments

Comments
 (0)