Skip to content

Lineage API response is incorrect when only of the queryParam (fw or bw) is passed #19

@sambekar15

Description

@sambekar15

Problem:
Hitting http://localhost:9000/v1/lineage/table/LOREM?bw=2 returns TableNotFound

The API returns full lineage if queryParams are not passed.
For Eg -
http://localhost:8080/api/v1/lineage/table/LOREM- returns full backward and forward lineage
http://localhost:8080/api/v1/lineage/table/LOREM?bw=0 returns full forward Lineage
http://localhost:8080/api/v1/lineage/table/LOREM?fw=0 returns full backward Lineage

But searching for any different depth for a single param results in error -
http://localhost:8080/api/v1/lineage/table/LOREM?bw=2 returns Table "LOREM" not found

Instead it should return http://localhost:8080/api/v1/lineage/table/LOREM?bw=2 => Backward Lineage at depth 2 and full forward Lineage

Expectations: Hitting http://localhost:8080/api/v1/lineage/table/LOREM?bw=2 => Backward Lineage at depth 2 and full forward Lineage

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions