From f8d796b6bd76e84a85f62d64709d7b5f3a638b65 Mon Sep 17 00:00:00 2001 From: "amir.shakeri" Date: Sat, 23 Nov 2024 02:46:02 +0100 Subject: [PATCH] Remove ORDER BY from the postgres DELETE statement --- .../main/java/org/openmetadata/service/jdbi3/CollectionDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 17fb6e34f1ea..ca8f64bdb657 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 @@ -1157,7 +1157,7 @@ void deleteLineageBySource( value = "DELETE FROM entity_relationship " + "WHERE json->'pipeline'->>'id' =:toId OR toId = :toId AND relation = :relation " - + "AND json->>'source' = :source ORDER BY toId", + + "AND json->>'source' = :source", connectionType = POSTGRES) void deleteLineageBySourcePipeline( @BindUUID("toId") UUID toId,