Skip to content

fix: Compare batch_source in KafkaSource and KinesisSource equality - #6926

Open
Rodrigo-Palma wants to merge 1 commit into
feast-dev:masterfrom
Rodrigo-Palma:fix/stream-source-eq-batch-source
Open

Rodrigo-Palma wants to merge 1 commit into
feast-dev:masterfrom
Rodrigo-Palma:fix/stream-source-eq-batch-source

Conversation

@Rodrigo-Palma

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

KafkaSource.__eq__ and KinesisSource.__eq__ ignore batch_source (PushSource.__eq__ checks it). apply_data_source skips the write when the stored source is equal, so changing only the batch source of a stream source is silently not persisted.

Which issue(s) this PR fixes:

None filed.

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

Misc

New test fails on master for both sources (unequal check and registry round trip) and passes with the fix.

Both __eq__ methods ignored batch_source, so apply_data_source treated a
stream source whose batch source changed as unchanged and skipped the write.

Signed-off-by: Rodrigo-Palma <email.rodrigopalma@gmail.com>
@Rodrigo-Palma
Rodrigo-Palma requested a review from a team as a code owner October 1, 2026 22:38
@codecov-commenter

codecov-commenter commented Oct 1, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.63%. Comparing base (6e9a532) to head (e96146a).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6926      +/-   ##
==========================================
+ Coverage   48.62%   48.63%   +0.01%     
==========================================
  Files         427      427              
  Lines       53845    53845              
  Branches     7844     7844              
==========================================
+ Hits        26181    26188       +7     
+ Misses      25797    25792       -5     
+ Partials     1867     1865       -2     
Flag Coverage Δ
go-feature-server 30.58% <ø> (ø)
python-unit 50.01% <ø> (+0.01%) ⬆️
Files with missing lines Coverage Δ
sdk/python/feast/data_source.py 82.73% <ø> (+1.30%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e9a532...e96146a. Read the comment docs.

🚀 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.

This branch has not been deployed

No deployments
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