From 03edd9df564456dc4977c3d837a2ed1d8bd33c7d Mon Sep 17 00:00:00 2001 From: Nahuel Date: Tue, 20 Dec 2022 20:38:43 +0100 Subject: [PATCH] Wrong services count returned from UtilResources (#9425) --- .../java/org/openmetadata/service/jdbi3/CollectionDAO.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CollectionDAO.java b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CollectionDAO.java index dec58a7127f..02391de2a57 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CollectionDAO.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/CollectionDAO.java @@ -3202,7 +3202,7 @@ public interface CollectionDAO { + "(SELECT COUNT(*) FROM dashboard_entity ) as dashboardCount, " + "(SELECT COUNT(*) FROM pipeline_entity ) as pipelineCount, " + "(SELECT COUNT(*) FROM ml_model_entity ) as mlmodelCount, " - + "(SELECT (SELECT COUNT(*) FROM database_entity ) + " + + "(SELECT (SELECT COUNT(*) FROM metadata_service_entity ) + " + "(SELECT COUNT(*) FROM dbservice_entity )+" + "(SELECT COUNT(*) FROM messaging_service_entity )+ " + "(SELECT COUNT(*) FROM dashboard_service_entity )+ " @@ -3219,7 +3219,7 @@ public interface CollectionDAO { + "(SELECT COUNT(*) FROM dashboard_entity ) as dashboardCount, " + "(SELECT COUNT(*) FROM pipeline_entity ) as pipelineCount, " + "(SELECT COUNT(*) FROM ml_model_entity ) as mlmodelCount, " - + "(SELECT (SELECT COUNT(*) FROM database_entity ) + " + + "(SELECT (SELECT COUNT(*) FROM metadata_service_entity ) + " + "(SELECT COUNT(*) FROM dbservice_entity )+ " + "(SELECT COUNT(*) FROM messaging_service_entity )+ " + "(SELECT COUNT(*) FROM dashboard_service_entity )+ "