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.

@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 54.27%. Comparing base (f2abc7c) to head (4932f35).
❗ 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   54.26%   54.27%           
=======================================
  Files         467      467           
  Lines       59041    59041           
  Branches     8712     8712           
=======================================
+ Hits        32040    32045    +5     
+ Misses      24837    24835    -2     
+ Partials     2164     2161    -3     
Flag Coverage Δ
go-feature-server 30.96% <ø> (ø)
python-unit 55.88% <ø> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
sdk/python/feast/data_source.py 86.23% <ø> (+1.22%) ⬆️

... and 1 file 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 f2abc7c...4932f35. 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.

@haoxu0

haoxu0 commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

good catch

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 force-pushed the fix/stream-source-eq-batch-source branch from 77343de to 4932f35 Compare November 26, 2026 11:58
@Rodrigo-Palma

Copy link
Copy Markdown
Contributor Author

Rebased onto master to resolve the test-file conflict; no change to the fix.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants