Skip to content

[FLINK-34466][LINEAGE] Support dataset type facet for Avro #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pawel-big-lebowski
Copy link
Contributor

With an implementation of lineage interfaces, Kafka source and sink provide TypeDatasetFacet which contains type information of data processed. This was working with extracting type information from SerializationSchema:

TypeExtractor.getParameterType(SerializationSchema.class, valueSerialization.getClass(), 0)

However, this ain't working for ConfluentRegistryAvroSerializationSchema due to type erasure.

As a workaround, TypeDatasetFacet can be extended to contain SerializationSchema when direct extraction of TypeInformation is not possible. This allows handling this case on the lineage listener side, while keeping flink-connector-kafka unaware of Avro type extraction logic.

@pawel-big-lebowski pawel-big-lebowski force-pushed the lineage/avro-schema-support branch from 1b75ef0 to 86f3d3c Compare April 16, 2025 12:27
@pawel-big-lebowski pawel-big-lebowski changed the title [LINEAGE] Support dataset type facet for Avro [FLINK-34466][LINEAGE] Support dataset type facet for Avro Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant