From 5d3248226fbd880b088e52b8d1f332c310019262 Mon Sep 17 00:00:00 2001 From: sonikashah Date: Mon, 30 Sep 2024 16:37:46 +0530 Subject: [PATCH] Fix #18035 - getting type null exception on feed --- .../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 2c8c21d55337..32b8f6469d83 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 @@ -1363,7 +1363,7 @@ int listCountThreadsByEntityLink( + " SELECT te.entityLink, te.type, te.taskStatus, te.id " + " FROM thread_entity te " + " WHERE te.entityId = :entityId " - + ") AS combined " + + ") AS combined WHERE combined.type IS NOT NULL " + "GROUP BY type, taskStatus, entityLink") @RegisterRowMapper(ThreadCountFieldMapper.class) List> listCountByEntityLink( @@ -1639,7 +1639,7 @@ default List> listCountThreadsByGlossaryAndTerms( + " AND (:toType2 IS NULL OR fr.toType LIKE CONCAT(:toType2, '.%') OR fr.toType = :toType2) " + " AND fr.relation = 3 " + " ) " - + ") AS combined_results " + + ") AS combined_results WHERE combined_results.type is not NULL " + "GROUP BY entityLink, type, taskStatus ") @RegisterRowMapper(ThreadCountFieldMapper.class) List> listCountThreadsByGlossaryAndTerms(