-
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.
- Loading branch information
1 parent
c70aa9b
commit 593cdc4
Showing
10 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_0_percentage_migration_readiness.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* --title 'Overall readiness (%)' --width 2 */ | ||
SELECT | ||
100 * COUNT_IF(size(failures) = 0) / COUNT(*) AS percentage | ||
ROUND(100 * COUNT_IF(size(failures) = 0) / COUNT(*), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
WHERE object_type IN ('udfs', 'grants', 'jobs', 'clusters', 'tables', 'pipelines', 'policies') |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_1_percentage_udf_migration_readiness.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* --title 'UDF migration readiness (%)' */ | ||
SELECT | ||
100 * COUNT_IF(size(failures) = 0) / COUNT(*) AS percentage | ||
ROUND(100 * COUNT_IF(size(failures) = 0) / COUNT(*), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
WHERE object_type = "udfs" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_2_percentage_grant_migration_readiness.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* --title 'Grant migration readiness (%)' */ | ||
SELECT | ||
100 * COUNT_IF(size(failures) = 0) / COUNT(*) AS percentage | ||
ROUND(100 * COUNT_IF(size(failures) = 0) / COUNT(*), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
WHERE object_type = "grants" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_3_percentage_job_migration_readiness.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* --title 'Job migration readiness (%)' */ | ||
SELECT | ||
100 * COUNT_IF(size(failures) = 0) / COUNT(*) AS percentage | ||
ROUND(100 * COUNT_IF(size(failures) = 0) / COUNT(*), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
WHERE object_type = "jobs" |
2 changes: 1 addition & 1 deletion
2
...databricks/labs/ucx/queries/progress/main/01_4_percentage_cluster_migration_readiness.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* --title 'Cluster migration readiness (%)' */ | ||
SELECT | ||
100 * COUNT_IF(size(failures) = 0) / COUNT(*) AS percentage | ||
ROUND(100 * COUNT_IF(size(failures) = 0) / COUNT(*), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
WHERE object_type = "clusters" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_5_percentage_table_migration_readiness.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* --title 'Table migration readiness (%)' --width 2 */ | ||
SELECT | ||
100 * COUNT_IF(size(failures) = 0) / COUNT(*) AS percentage | ||
ROUND(100 * COUNT_IF(size(failures) = 0) / COUNT(*), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
WHERE object_type = "tables" |
2 changes: 1 addition & 1 deletion
2
...atabricks/labs/ucx/queries/progress/main/01_6_percentage_pipeline_migration_readiness.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* --title 'Pipeline migration readiness (%)' */ | ||
SELECT | ||
100 * COUNT_IF(size(failures) = 0) / COUNT(*) AS percentage | ||
ROUND(100 * COUNT_IF(size(failures) = 0) / COUNT(*), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
WHERE object_type = "pipelines" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_7_percentage_policy_migration_readiness.sql
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* --title 'Policy migration readiness (%)' */ | ||
SELECT | ||
100 * COUNT_IF(size(failures) = 0) / COUNT(*) AS percentage | ||
ROUND(100 * COUNT_IF(size(failures) = 0) / COUNT(*), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
WHERE object_type = "policies" |
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