Skip to content

[feat] support embed-schema record batch msg in KafkaDataset#413

Merged
tiankongdeguiji merged 5 commits intomasterfrom
features/embed_schema_msg
Mar 6, 2026
Merged

[feat] support embed-schema record batch msg in KafkaDataset#413
tiankongdeguiji merged 5 commits intomasterfrom
features/embed_schema_msg

Conversation

@tiankongdeguiji
Copy link
Collaborator

No description provided.


try:
# Directly assign partition 0 (no subscribe, no group coordination)
tp = TopicPartition(topic, 0)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential Issue: Only reads from partition 0

This method peeks at the schema from only partition 0. If the Kafka topic has multiple partitions, and messages in other partitions have different schemas (unlikely but possible), this could cause inconsistencies.

Consider whether this assumption is documented or if validation should be added to ensure schema consistency across partitions.

@tiankongdeguiji tiankongdeguiji merged commit 0ec121f into master Mar 6, 2026
9 checks passed
@tiankongdeguiji tiankongdeguiji deleted the features/embed_schema_msg branch March 9, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants