OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Feature: Support for Pipeline Status in OpenLineage Connector

Open LuVlk opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe.

Currently, the OpenLineage connector in OpenMetadata does not support tracking and reporting pipeline execution status (e.g., START, RUNNING, COMPLETE, etc.). This limitation prevents users from monitoring the health and success rate of their data pipelines directly within OpenMetadata, requiring them to check multiple systems for complete pipeline observability.

Describe the solution you'd like

I noticed there is already a method stub for handling pipeline status from OpenLineage events in ingestion/src/metadata/ingestion/source/pipeline/openlineage/metadata.py, which needs to be implemented:

def yield_pipeline_status(
    self, pipeline_details: OpenLineageEvent
) -> Iterable[Either[OMetaPipelineStatus]]:
    pass

Describe alternatives you've considered

I do not consider this issue as an alternative, but rather as complementary information. This issue suggest to use the eventTime field to set the PipelineStatus. The issue does not mention the eventType field, which already provides the status information. Using the eventTime might be necessary to determine event ordering, if the events are produced out of order.

A clear and concise description of any alternative solutions or features you've considered.

Additional context

See https://openlineage.io/docs/development/examples/ for example events

LuVlk avatar Jan 22 '25 12:01 LuVlk

I got referred to this ticket by David Reylonds in regards to my question regarding openlineage-flink integration. Openlineage-flink publishes the lineage information in the START event and my guess is that all streaming jobs do. Currently OpenMetadata consumes only COMPLETED events - that works for BATCH jobs, but not for STREAMING jobs.

I'm curious if the support for OpenLineage STREAMING jobs needs a separate ticket or should this be implemented as part of this one?

OpenLineage got supported by Debezium and looks like an emerging standard for the Operational plane - where data lineage has been underdeveloped for a while, and I haven't found good support yet. Looks like an opportunity. I'd love to publish something about it once it's present, I saw significant interest in OpenLineage in the streaming world. And it would be great to have a mature data catalog that's open source and supports bo Analytical and Operational planes.

fetta avatar Jun 18 '25 16:06 fetta

I opened a dedicated feature request for this problem. I think this ticket is about status tracking, my ticket is about ingesting lineage from the START event.

If these are effectively the same - please let me know, I'll close mine.

https://github.com/open-metadata/OpenMetadata/issues/21886

fetta avatar Jun 21 '25 14:06 fetta

Hi @LuVlk @harshach
I’m currently working on this as part of a hackathon, and the problem looks really interesting. I’d love to take it up. I already have a plan to map OpenLineage states to PipelineStatus and handle out-of-order events properly. Could you please assign it to me.

ayushgupta704 avatar Apr 21 '26 04:04 ayushgupta704

@ayushgupta704 this doesn’t require openlineage connector, OepnMetadata natively supports openlineage API and converts that into OpenMEtadata lineage specification. You need to add to that endpoint to take in the openlineage statuses and convert that into pipeline status

harshach avatar Apr 21 '26 04:04 harshach

Thanks @harshach for the clarification and for assigning this. Got it that approach makes sense. I’ll work on this in the Java backend (OpenLineageResource / OpenLineageMapper) to capture events from the /v1/openlineage endpoint, map START/COMPLETE/FAIL to PipelineStatus, and persist them. I’ll get started on this now as part of the hackathon and will open a PR soon.

ayushgupta704 avatar Apr 21 '26 04:04 ayushgupta704

Hi, This is feature that missing compare to Marquez. Is still on the roadmap ? Thx

guillaumBrisard avatar Jul 27 '26 11:07 guillaumBrisard