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 6aef2dba3f40..ba842edcc85e 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 @@ -1399,7 +1399,7 @@ List> listCountByEntityLink( + " SELECT te.type, te.taskStatus, te.id " + " FROM thread_entity te " + " WHERE MATCH(te.taskAssigneesIds) AGAINST (:userTeamJsonMysql IN BOOLEAN MODE) " - + ") AS combined " + + ") AS combined WHERE combined.type is not NULL " + "GROUP BY combined.type, combined.taskStatus;", connectionType = MYSQL) @ConnectionAwareSqlQuery( @@ -1433,7 +1433,7 @@ List> listCountByEntityLink( + " SELECT te.type, te.taskStatus, te.id " + " FROM thread_entity te " + " WHERE to_tsvector('simple', taskAssigneesIds) @@ to_tsquery('simple', :userTeamJsonPostgres) " - + ") AS combined " + + ") AS combined WHERE combined.type is not NULL " + "GROUP BY combined.type, combined.taskStatus;", connectionType = POSTGRES) @RegisterRowMapper(OwnerCountFieldMapper.class)