-
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.
Rename latest_historical_per_workspace to objects_snapshot
- Loading branch information
1 parent
4b7060c
commit ccb3bb3
Showing
15 changed files
with
14 additions
and
16 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
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_0_percentage_migration_progress.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 progress (%)' --width 2 */ | ||
SELECT | ||
ROUND(100 * try_divide(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type IN ('ClusterInfo', 'Grant', 'JobInfo', 'PipelineInfo', 'PolicyInfo', 'Table', 'Udf') |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_1_percentage_udf_migration_progress.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 progress (%)' */ | ||
SELECT | ||
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = "Udf" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_2_percentage_grant_migration_progress.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 progress (%)' */ | ||
SELECT | ||
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = "Grant" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_3_percentage_job_migration_progress.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 progress (%)' */ | ||
SELECT | ||
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = "JobInfo" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_4_percentage_cluster_migration_progress.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 progress (%)' */ | ||
SELECT | ||
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = "ClusterInfo" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_5_percentage_table_migration_progress.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 progress (%)' --width 2 */ | ||
SELECT | ||
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = "Table" |
2 changes: 1 addition & 1 deletion
2
...databricks/labs/ucx/queries/progress/main/01_6_percentage_pipeline_migration_progress.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 progress (%)' */ | ||
SELECT | ||
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = "PipelineInfo" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_7_percentage_policy_migration_progress.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 progress (%)' */ | ||
SELECT | ||
ROUND(100 * TRY_DIVIDE(COUNT_IF(SIZE(failures) = 0), COUNT(*)), 2) AS percentage | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = "PolicyInfo" |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/01_8_distinct_failures_per_object_type.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
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/02_1_pending_migration_data_objects.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,4 +1,4 @@ | ||
/* --title 'Pending migration' --description 'Total number of tables and views' --height 6 */ | ||
SELECT COUNT(*) AS count | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = 'Table' AND array_contains(failures, 'Pending migration') |
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
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/02_3_migrated_data_objects.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,4 +1,4 @@ | ||
/* --title 'Migrated' --description 'Total number of tables and views' --height 6 */ | ||
SELECT COUNT(*) AS count | ||
FROM ucx_catalog.multiworkspace.latest_historical_per_workspace | ||
FROM ucx_catalog.multiworkspace.objects_snapshot | ||
WHERE object_type = 'Table' AND SIZE(failures) == 0 |
2 changes: 1 addition & 1 deletion
2
src/databricks/labs/ucx/queries/progress/main/02_4_migration_status_by_owner_overview.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
File renamed without changes.