diff --git a/src/databricks/labs/ucx/queries/assessment/main/01_0_object_readiness.sql b/src/databricks/labs/ucx/queries/assessment/main/01_0_object_readiness.sql index 271dd95556..e86278a6c0 100644 --- a/src/databricks/labs/ucx/queries/assessment/main/01_0_object_readiness.sql +++ b/src/databricks/labs/ucx/queries/assessment/main/01_0_object_readiness.sql @@ -1,5 +1,5 @@ -- viz type=table, name=Object Type Readiness, columns=object_type,readiness --- widget title=Readiness, row=1, col=0, size_x=1, size_y=8 +-- widget title=Readiness, row=1, col=0, size_x=2, size_y=8 WITH raw AS ( SELECT object_type, object_id, IF(failures == '[]', 1, 0) AS ready FROM $inventory.objects ) diff --git a/src/databricks/labs/ucx/queries/assessment/main/01_1_failure_summary.sql b/src/databricks/labs/ucx/queries/assessment/main/01_2_assessment_summary.sql similarity index 56% rename from src/databricks/labs/ucx/queries/assessment/main/01_1_failure_summary.sql rename to src/databricks/labs/ucx/queries/assessment/main/01_2_assessment_summary.sql index 9e8eba3cdf..d0bf26a3a2 100644 --- a/src/databricks/labs/ucx/queries/assessment/main/01_1_failure_summary.sql +++ b/src/databricks/labs/ucx/queries/assessment/main/01_2_assessment_summary.sql @@ -1,7 +1,7 @@ -- viz type=table, name=Assessment Summary, search_by=failure, columns=failure,count --- widget title=Assessment Summary, row=1, col=1, size_x=2, size_y=8 +-- widget title=Assessment Summary, row=1, col=2, size_x=4, size_y=8 WITH raw AS ( SELECT EXPLODE(FROM_JSON(failures, 'array')) AS failure FROM $inventory.objects WHERE failures <> '[]' ) -SELECT failure, COUNT(*) AS count FROM raw GROUP BY failure -ORDER BY count DESC, failure DESC \ No newline at end of file +SELECT failure as `item`, COUNT(*) AS count FROM raw GROUP BY failure +ORDER BY count DESC, failure DESC diff --git a/src/databricks/labs/ucx/queries/assessment/main/01_3_all_tables.sql b/src/databricks/labs/ucx/queries/assessment/main/03_0_all_tables.sql similarity index 96% rename from src/databricks/labs/ucx/queries/assessment/main/01_3_all_tables.sql rename to src/databricks/labs/ucx/queries/assessment/main/03_0_all_tables.sql index b749fdcaa7..721b31ea5d 100644 --- a/src/databricks/labs/ucx/queries/assessment/main/01_3_all_tables.sql +++ b/src/databricks/labs/ucx/queries/assessment/main/03_0_all_tables.sql @@ -1,5 +1,5 @@ -- viz type=table, name=Table Types, search_by=name, columns=name,type,format,storage,is_delta,location --- widget title=Table Types, row=1, col=3, size_x=3, size_y=8 +-- widget title=Table Types, row=4, col=0, size_x=6, size_y=8 SELECT CONCAT(tables.`database`, '.', tables.name) AS name, object_type AS type, table_format AS format, diff --git a/src/databricks/labs/ucx/queries/assessment/main/03_0_external_locations.sql b/src/databricks/labs/ucx/queries/assessment/main/04_0_external_locations.sql similarity index 100% rename from src/databricks/labs/ucx/queries/assessment/main/03_0_external_locations.sql rename to src/databricks/labs/ucx/queries/assessment/main/04_0_external_locations.sql diff --git a/src/databricks/labs/ucx/queries/assessment/main/03_3_mount_points.sql b/src/databricks/labs/ucx/queries/assessment/main/04_3_mount_points.sql similarity index 100% rename from src/databricks/labs/ucx/queries/assessment/main/03_3_mount_points.sql rename to src/databricks/labs/ucx/queries/assessment/main/04_3_mount_points.sql diff --git a/src/databricks/labs/ucx/queries/assessment/main/04_0_clusters.sql b/src/databricks/labs/ucx/queries/assessment/main/05_0_clusters.sql similarity index 100% rename from src/databricks/labs/ucx/queries/assessment/main/04_0_clusters.sql rename to src/databricks/labs/ucx/queries/assessment/main/05_0_clusters.sql diff --git a/src/databricks/labs/ucx/queries/assessment/main/04_3_jobs.sql b/src/databricks/labs/ucx/queries/assessment/main/05_0_jobs.sql similarity index 100% rename from src/databricks/labs/ucx/queries/assessment/main/04_3_jobs.sql rename to src/databricks/labs/ucx/queries/assessment/main/05_0_jobs.sql diff --git a/src/databricks/labs/ucx/queries/assessment/main/05_3_global_init_scripts.sql b/src/databricks/labs/ucx/queries/assessment/main/06_3_global_init_scripts.sql similarity index 100% rename from src/databricks/labs/ucx/queries/assessment/main/05_3_global_init_scripts.sql rename to src/databricks/labs/ucx/queries/assessment/main/06_3_global_init_scripts.sql