Remove ORDER BY from the postgres DELETE statement (#18757)

Co-authored-by: amir.shakeri <amir.shakeri@free-now.com>
Co-authored-by: Sriharsha Chintalapani <harshach@users.noreply.github.com>
This commit is contained in:
Amir Shakeri 2024-11-28 08:21:23 +01:00 committed by GitHub
parent d3af7ae601
commit 860b420d3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1176,7 +1176,7 @@ public interface CollectionDAO {
value = value =
"DELETE FROM entity_relationship " "DELETE FROM entity_relationship "
+ "WHERE json->'pipeline'->>'id' =:toId OR toId = :toId AND relation = :relation " + "WHERE json->'pipeline'->>'id' =:toId OR toId = :toId AND relation = :relation "
+ "AND json->>'source' = :source ORDER BY toId", + "AND json->>'source' = :source",
connectionType = POSTGRES) connectionType = POSTGRES)
void deleteLineageBySourcePipeline( void deleteLineageBySourcePipeline(
@BindUUID("toId") UUID toId, @BindUUID("toId") UUID toId,