Repository navigation
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6848 +/- ##
==========================================
+ Coverage 53.94% 54.10% +0.16%
==========================================
Files 466 467 +1
Lines 58822 58940 +118
Branches 8665 8688 +23
==========================================
+ Hits 31729 31889 +160
+ Misses 24954 24892 -62
- Partials 2139 2159 +20
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
8c9a901 to
899c4ce
Compare
fdeee98 to
0ef34fd
Compare
a6bc9b0 to
61e8c8f
Compare
61e8c8f to
9326e8e
Compare
4946f7d to
295eab8
Compare
3680246 to
2c83023
Compare
2c83023 to
50794aa
Compare
There was a problem hiding this comment.
Devin Review found 2 potential issues.
3 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| ttl: Optional[timedelta] = None, | ||
| tags: Optional[Dict[str, str]] = None, | ||
| online: bool = False, | ||
| online_config: Optional[OnlineConfig] = None, |
There was a problem hiding this comment.
🟡 Batch view copies lose online configuration
Copying a configured batch view drops online_config because BatchFeatureView.__copy__ omits it. Registry.apply_feature_view uses that copy for version pinning and unpromoted snapshots. Pinning raises a false conflict, while unpromoted versions silently lose their configuration.
Learn more
The new constructor argument is not preserved by BatchFeatureView.copy. That method reconstructs the batch view without online_config, resetting it to None. Registry.apply_feature_view compares the copy against the active view during version pinning, so an otherwise matching configured view fails the comparison. The same method copies unpromoted versions before serializing their snapshots, permanently omitting the configuration. SqlRegistry.apply_feature_view also uses the copy for pin comparisons.
Example: Register a batch view with sequence mode, max_length=50, and append writes. Add a feature and apply with no_promote=True. The new version snapshot contains no online configuration, although the submitted definition does.
Recommended fix: Pass online_config=self.online_config in BatchFeatureView.__copy__. Add regression tests for copied batch views, pinning a configured batch view, and preserving configuration in unpromoted version snapshots.
Was this helpful? React with 👍 or 👎 to provide feedback.
| online_config=( | ||
| self.online_config.to_proto() | ||
| if self.online_config is not None | ||
| else None | ||
| ), |
There was a problem hiding this comment.
🟡 Default online configuration changes are ignored
With local SQLite, feast apply ignores changes between online_config=None and OnlineConfig() when nothing else changes. diff_registry_objects compares child messages without checking presence, so it reports UNCHANGED. The registry retains the previous configuration instead of storing or clearing it.
Learn more
An omitted message and a present message containing only default-valued fields differ in protobuf presence, but their child messages compare equal. OnlineConfig() serializes entirely to default values, making this distinction reachable for the new field. diff_registry_objects compares field values without HasField, so it produces no property differences for either direction. The CLI's planned apply flow, used for the local provider with SQLite, skips unchanged objects in apply_diff_to_registry. Direct SDK apply does not use this diff filter, so the existing apply test does not cover the failure.
Example: Register a view with online_config=OnlineConfig(), remove that argument, and run feast apply using the local provider and SQLite. With no other changes, the plan reports no update and the registry still contains the explicit configuration.
Recommended fix: Make registry diffing presence-aware for message fields, including online_config. Test both adding and clearing OnlineConfig() through the plan/apply-diffs flow while keeping all other fields unchanged.
Was this helpful? React with 👍 or 👎 to provide feedback.
|
@patelchaitany StreamFeatureView is not wired into these configs ? |
| """ | ||
|
|
||
| mode: str = "latest" | ||
| max_length: Optional[int] = None |
There was a problem hiding this comment.
Optional here is for mode="latest" only. In mode="sequence", validation requires a positive max_length.
This is stricter than I thought, where proto 0 meant unlimited. Here None/proto 0 means unset - there is no unlimited sequence.
There was a problem hiding this comment.
@patelchaitany please change this to allow mode="sequence" to have unlimited sequence
|
Signed-off-by: Chaitany Patel <patelchaitany93@gmail.com>
BatchFeatureView.__copy__ now passes online_config, so version pinning and unpromoted version snapshots keep the configuration. Registry diffing now checks presence for online_config, so feast apply detects switching between no config and OnlineConfig() with defaults. Signed-off-by: Chaitany Patel <patelchaitany93@gmail.com>
Sequence mode no longer requires max_length. Leaving max_length or max_age unset (proto 0) now means no limit of that kind, so a sequence with neither set keeps every event. Signed-off-by: Chaitany Patel <patelchaitany93@gmail.com>
724baf0 to
95d2cc2
Compare
Summary
Scope
This PR establishes the backward-compatible SDK and registry foundation for future sequence features. Online-store append, sequence retrieval, and backend-specific eviction are intentionally deferred to follow-up PRs.
Acceptance criteria
Validation
Full repository mypy currently requires the optional types-PyMySQL stub, which is not installed in the local environment.
Parent epic: RHOAIENG-80117