OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

BUG: OpenLineage connector consumes only COMPLETE events, ignoring all other

Open fetta opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. I'm trying to integrate OpenMetadata with Flink using OpenLineage, but the OpenLineage connector only supports 'SUCCESS' events.

openlineage/metadata.py:

    Works under the assumption that OpenLineage integrations produce events to Kafka topic, which is a source of events
    for this connector.

    Only 'SUCCESS' OpenLineage events are taken into account in this connector.

STREAMING jobs don't produce SUCCESS events. Flink specifically publishes a START event where it publishes lineage, and RUNNING events continuously.

Describe the solution you'd like Ingesting lineage for START event seems like a low hanging fruit that will open up a whole new market segment for OpenMetadata adoption.

Describe alternatives you've considered There are no good alternatives. If a system's is using OpenLineage, they need a data catalog that can support it for STREAMING jobs as well. The alternative is choosing a different Data Catalog.

Additional context A week ago Debezium announced OpenLineage support. It's an emerging standard for lineage in the Operational plane. And you already support it, so the change complexity is not significant.

fetta avatar Jun 21 '25 14:06 fetta

Actually this is a bug: https://openlineage.io/docs/spec/run-cycle

Events in a run are accumulative. The implementation doesn't implement the specification. I've updated the title.

fetta avatar Jun 26 '25 19:06 fetta

@harshach @ulixius9 could anyone label this as bug please? I thought it's the expected behaviour and just no support for STREAMING jobs, but apparently this is a bug. Doesn't follow OpenLineage specification.

fetta avatar Jun 28 '25 10:06 fetta

Hey @fetta, have added this ticket to roadmap we will try to fix it for 1.9.0 release

ulixius9 avatar Jul 02 '25 06:07 ulixius9

That's fantastic! Won't be as straightfoward as I initially thought - cause you need to accumulate the lineage events from the whole run, and while Flink publishes all inputs and outputs in the START event, Debezium publishes many smaller events - some containing inputs, some outputs.

I'd be happy to try it out once the change is there, preferably if docker images containing the fix are available somewhere so that I don't have to build them locally.

fetta avatar Jul 02 '25 11:07 fetta

@fetta I was facing the same issue, and ended up creating a fix for it: https://github.com/open-metadata/OpenMetadata/pull/24889 is this what you had in mind?

jsinghkukreja avatar Dec 18 '25 06:12 jsinghkukreja