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 6aef2dba3f4..ba842edcc85 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 @@ public interface CollectionDAO { + " 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 @@ public interface CollectionDAO { + " 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)