Skip to content

Conversation

@fqaiser94
Copy link

Haven't been able to file a JIRA ticket yet as I'm waiting on account creation.

Currently PyFlink users have access to only the set_value_only_deserializer API for configuring how to deserialize Kafka messages. This API is extremely limited as it does not allow PyFlink users to:

  1. Deserialize keys
  2. Access ConsumerRecord metadata such as topic, partition, offset, etc.

We can resolve this by exposing a set_deserializer method which will allow users to pass in a KafkaRecordDeserializationSchema object that describes how to deserialize a ConsumerRecord. This is similar to the pattern followed by the Java implementation of KafkaSourceBuilder.

@boring-cyborg
Copy link

boring-cyborg bot commented Jan 13, 2025

Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)

@fqaiser94 fqaiser94 force-pushed the support_kafka_record_deserialization_schema_in_python branch from 568158b to 1bd40dc Compare January 13, 2025 19:23
@fqaiser94 fqaiser94 changed the title [FLINK-XXX]: Add Python KafkaSource.set_deserializer API [FLINK-XXX] Add Python KafkaSource.set_deserializer API Jan 13, 2025
@fqaiser94 fqaiser94 changed the title [FLINK-XXX] Add Python KafkaSource.set_deserializer API [FLINK-XXX] Add set_deserializer method to Python KafkaSourceBuilder Jan 13, 2025
@github-actions
Copy link

This PR is being marked as stale since it has not had any activity in the last 90 days.
If you would like to keep this PR alive, please leave a comment asking for a review.
If the PR has merge conflicts, update it with the latest from the base branch.

If you are having difficulty finding a reviewer, please reach out to the
community, contact details can be found here: https://flink.apache.org/what-is-flink/community/

If this PR is no longer valid or desired, please feel free to close it.
If no activity occurs in the next 30 days, it will be automatically closed.

@github-actions github-actions bot added the stale label Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant