From 35bef5669a596fc76f262efaf96036d465aae5d5 Mon Sep 17 00:00:00 2001 From: sonika-shah <58761340+sonika-shah@users.noreply.github.com> Date: Sun, 29 Sep 2024 10:24:46 +0530 Subject: [PATCH] Fix #18035 - getting type null exception on user feed (#18036) --- .../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 c4aba96c348..2c8c21d5533 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 @@ -1402,7 +1402,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( @@ -1436,7 +1436,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)