mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 09:22:14 +00:00
Lineage task new (#11231)
* working on pipeline lineage fix * solved issue for lineage not visible when added from pipeline to table --------- Co-authored-by: Himank Mehta <himankmehta@Himanks-MacBook-Air.local>
This commit is contained in:
parent
f468bfb3bb
commit
aa492ffda7
@ -665,13 +665,13 @@ public interface CollectionDAO {
|
||||
@ConnectionAwareSqlQuery(
|
||||
value =
|
||||
"SELECT toId, toEntity, json FROM entity_relationship "
|
||||
+ "WHERE JSON_UNQUOTE(JSON_EXTRACT(json, '$.pipeline.id')) =:fromId AND relation = :relation "
|
||||
+ "WHERE JSON_UNQUOTE(JSON_EXTRACT(json, '$.pipeline.id')) =:fromId OR fromId = :fromId AND relation = :relation "
|
||||
+ "ORDER BY toId",
|
||||
connectionType = MYSQL)
|
||||
@ConnectionAwareSqlQuery(
|
||||
value =
|
||||
"SELECT toId, toEntity, json FROM entity_relationship "
|
||||
+ "WHERE json->'pipeline'->>'id' =:fromId AND relation = :relation "
|
||||
+ "WHERE json->'pipeline'->>'id' =:fromId OR fromId = :fromId AND relation = :relation "
|
||||
+ "ORDER BY toId",
|
||||
connectionType = POSTGRES)
|
||||
@RegisterRowMapper(ToRelationshipMapper.class)
|
||||
@ -702,13 +702,13 @@ public interface CollectionDAO {
|
||||
@ConnectionAwareSqlQuery(
|
||||
value =
|
||||
"SELECT fromId, fromEntity, json FROM entity_relationship "
|
||||
+ "WHERE JSON_UNQUOTE(JSON_EXTRACT(json, '$.pipeline.id')) = :toId AND relation = :relation "
|
||||
+ "WHERE JSON_UNQUOTE(JSON_EXTRACT(json, '$.pipeline.id')) = :toId OR toId = :toId AND relation = :relation "
|
||||
+ "ORDER BY fromId",
|
||||
connectionType = MYSQL)
|
||||
@ConnectionAwareSqlQuery(
|
||||
value =
|
||||
"SELECT fromId, fromEntity, json FROM entity_relationship "
|
||||
+ "WHERE json->'pipeline'->>'id' = :toId AND relation = :relation "
|
||||
+ "WHERE json->'pipeline'->>'id' = :toId OR toId = :toId AND relation = :relation "
|
||||
+ "ORDER BY fromId",
|
||||
connectionType = POSTGRES)
|
||||
@RegisterRowMapper(FromRelationshipMapper.class)
|
||||
|
Loading…
x
Reference in New Issue
Block a user