Skip to content

Allow users to pass group_id as part of data_location - #1083

Merged
drewoldag merged 2 commits into
mainfrom
awo/allow-kafka-group-in-url
Oct 29, 2026
Merged

drewoldag merged 2 commits into
mainfrom
awo/allow-kafka-group-in-url

Conversation

@drewoldag

Copy link
Copy Markdown
Collaborator

Allow users to pass group_id as part of data_location when creating kafka stream dataset.

Copilot AI balanced review requested due to automatic review settings October 29, 2026 21:28
@drewoldag drewoldag self-assigned this Oct 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

host_port = parsed.netloc # "broker.example.org:9092"
topic = parsed.path.lstrip("/") # "my-topic"
if "/" in topic:
topic, group_id = topic.split("/", 1) # "my-topic", "my-group"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Note that it is generally forbidden to use "/" in a kafka topic name, but slashes are NOT forbidden in group ids. So it should be safe to simply split on the first "/" character and assume that the left side is topic and the right side is group_id.

@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.57%. Comparing base (ff371ce) to head (7cb130c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1083   +/-   ##
=======================================
  Coverage   71.56%   71.57%           
=======================================
  Files          93       93           
  Lines        9309     9312    +3     
=======================================
+ Hits         6662     6665    +3     
  Misses       2647     2647           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@maxwest-uw maxwest-uw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm !

@drewoldag
drewoldag merged commit 699b53c into main Oct 29, 2026
8 checks passed
@drewoldag
drewoldag deleted the awo/allow-kafka-group-in-url branch October 29, 2026 22:30
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.

Support data_location defined as kafka://host:port/topic/group_id

3 participants