René's URL Explorer Experiment


Title: `feast apply` silently ignores ttl updates when the new ttl is `None` or `timedelta(0)` · Issue #6703 · feast-dev/feast · GitHub

Open Graph Title: `feast apply` silently ignores ttl updates when the new ttl is `None` or `timedelta(0)` · Issue #6703 · feast-dev/feast

X Title: `feast apply` silently ignores ttl updates when the new ttl is `None` or `timedelta(0)` · Issue #6703 · feast-dev/feast

Description: Expected Behavior Re-applying an existing FeatureView with ttl=None or ttl=timedelta(0) should clear the ttl in the registry. After feast apply, store.get_feature_view("foo_fv").ttl should reflect the new "no expiry" value. Current Behav...

Open Graph Description: Expected Behavior Re-applying an existing FeatureView with ttl=None or ttl=timedelta(0) should clear the ttl in the registry. After feast apply, store.get_feature_view("foo_fv").ttl should reflect ...

X Description: Expected Behavior Re-applying an existing FeatureView with ttl=None or ttl=timedelta(0) should clear the ttl in the registry. After feast apply, store.get_feature_view("foo_fv").ttl shoul...

Opengraph URL: https://github.com/feast-dev/feast/issues/6703

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`feast apply` silently ignores ttl updates when the new ttl is `None` or `timedelta(0)`","articleBody":"## Expected Behavior\n\nRe-applying an existing `FeatureView` with `ttl=None` or `ttl=timedelta(0)` should clear the ttl in the registry. After `feast apply`, `store.get_feature_view(\"foo_fv\").ttl` should reflect the new \"no expiry\" value.\n\n## Current Behavior\n\nThe old ttl is silently retained. `store.get_feature_view(\"foo_fv\").ttl` still returns the previous finite value, with no warning or error, while `feast apply` keeps printing the same \"changed\" diff on every run.\n\n`Registry.apply_feature_view()` routes ttl changes through `_update_metadata_fields()` instead of creating a new version, and that method gates the ttl copy behind a truthiness check on the raw `timedelta`:\n\n```python\nif (\n    hasattr(existing_proto.spec, \"ttl\")\n    and hasattr(updated_fv, \"ttl\")\n    and updated_fv.ttl          # falsy for both None and timedelta(0)\n):\n```\n\nSince `None` and `timedelta(0)` are both falsy — and both are the documented way to express \"no ttl\" — the update is dropped exactly in the case it should support. `get_ttl_duration()` already handles `None` correctly; only the outer guard is wrong. Still present on `master` as of 2026-08.\n\nPractical impact: a `FeatureView` intended to never expire silently kept a stale finite ttl, causing `get_historical_features` to drop ~11.6% of otherwise-valid rows from a point-in-time join, with no error or warning.\n\n## Steps to reproduce\n\n```python\nfrom datetime import timedelta\nfrom feast import Entity, FeatureView, Field, FileSource, Project\nfrom feast.types import Float32\n\nproject = Project(name=\"ttl_repro\")\nentity = Entity(name=\"foo\", join_keys=[\"foo_id\"])\nsource = FileSource(\n    name=\"foo_source\",\n    path=\"./data/foo.parquet\",\n    timestamp_field=\"event_timestamp\",\n)\n\n# 1. Apply with a finite ttl -> fv.ttl == 10 days (correct)\nfv = FeatureView(\n    name=\"foo_fv\",\n    entities=[entity],\n    ttl=timedelta(days=10),\n    schema=[Field(name=\"bar\", dtype=Float32)],\n    source=source,\n)\n\n# 2. Change ttl to \"no expiry\" and `feast apply` again\nfv_v2 = FeatureView(\n    name=\"foo_fv\",\n    entities=[entity],\n    ttl=None,  # or timedelta(days=0) - same result\n    schema=[Field(name=\"bar\", dtype=Float32)],\n    source=source,\n)\n```\n\nThen check `store.get_feature_view(\"foo_fv\").ttl` — it is still `timedelta(days=10)`.\n\n### Specifications\n\n- Version: 0.65.0 (PyPI); also confirmed on `master` as of 2026-08\n- Platform: \u003c!-- e.g. macOS 14.5, Python 3.10 -->\n- Subsystem: Registry — `sdk/python/feast/infra/registry/registry.py`, `Registry._update_metadata_fields()`\n\n## Possible Solution\n\nDrop the outer truthiness check and always sync ttl on update, relying on `get_ttl_duration()`'s existing `None`-handling and defaulting to an explicit zero `Duration` when unset:\n\n```python\nif hasattr(existing_proto.spec, \"ttl\") and hasattr(updated_fv, \"ttl\"):\n    if isinstance(updated_fv, FeatureView):\n        existing_proto.spec.ttl.CopyFrom(updated_fv.get_ttl_duration() or Duration())\n    elif isinstance(updated_fv, LabelView):\n        ttl_duration = Duration()\n        if updated_fv.ttl is not None:\n            ttl_duration.FromTimedelta(updated_fv.ttl)\n        existing_proto.spec.ttl.CopyFrom(ttl_duration)\n```\n\nHappy to open a PR with this plus a regression test (apply with finite ttl, re-apply with `ttl=None`, assert the registry reflects it)","author":{"url":"https://github.com/erald02","@type":"Person","name":"erald02"},"datePublished":"2026-08-04T20:38:14Z","url":"https://github.com/feast-dev/feast/issues/6703"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4e91e8cb-b11a-d631-7378-f5ff12606a40
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD8D0:2893E9:2C24B9:3CC4F1:6AFE9810
html-safe-nonce89ec209c618dc6cef0d050a63d813227108391fb3e50c29c57e87f6c1bc9d99b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEQwOjI4OTNFOToyQzI0Qjk6M0NDNEYxOjZBRkU5ODEwIiwidmlzaXRvcl9pZCI6IjY0NzkzMTIxMTYwNjU5MzMzMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac94671d3f81c14610547822c53f9becaa0bf04d456ae4af0b5f87b77c324193c3
hovercard-subject-tagissue:5064686686
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6703/issue_layout
twitter:imagehttps://opengraph.githubassets.com/26e6733da5c6b1a2d343b5a99ff57549d137bfaa96a7ebed419adf9477e2b356/feast-dev/feast/issues/6703
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/26e6733da5c6b1a2d343b5a99ff57549d137bfaa96a7ebed419adf9477e2b356/feast-dev/feast/issues/6703
og:image:altExpected Behavior Re-applying an existing FeatureView with ttl=None or ttl=timedelta(0) should clear the ttl in the registry. After feast apply, store.get_feature_view("foo_fv").ttl should reflect ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameerald02
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/6703#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6703
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6703
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/6703
Reloadhttps://github.com/feast-dev/feast/issues/6703
Reloadhttps://github.com/feast-dev/feast/issues/6703
feast-devhttps://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Codehttps://github.com/feast-dev/feast
Issues223 (223)https://github.com/feast-dev/feast/issues
Pull requests143 (143)https://github.com/feast-dev/feast/pulls
Discussionshttps://github.com/feast-dev/feast/discussions
Actionshttps://github.com/feast-dev/feast/actions
Security and quality1 (1)https://github.com/feast-dev/feast/security
Insightshttps://github.com/feast-dev/feast/insights
https://github.com/feast-dev/feast
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6703
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6703
#6709https://github.com/feast-dev/feast/pull/6709
feast apply silently ignores ttl updates when the new ttl is None or timedelta(0)https://github.com/feast-dev/feast/issues/6703#top
#6709https://github.com/feast-dev/feast/pull/6709
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%22
https://github.com/erald02
erald02https://github.com/erald02
on Aug 4, 2026https://github.com/feast-dev/feast/issues/6703#issue-5064686686
erald02https://github.com/erald02
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%22
on Aug 4, 2026https://github.com/feast-dev/feast/issues/6703#event-28973394696
saket3395https://github.com/saket3395
on Aug 11, 2026https://github.com/feast-dev/feast/issues/6703#event-29281900938
test: cover ttl clearing in _update_metadata_fields (feast-dev#6703)https://github.com/saket3395/feast/commit/970b048420ff4cc12ee04fbd337e502f693f2ff5
feast-dev#6703https://github.com/feast-dev/feast/issues/6703
970b048https://github.com/saket3395/feast/commit/970b048420ff4cc12ee04fbd337e502f693f2ff5
ntkatholehttps://github.com/ntkathole
on Aug 14, 2026https://github.com/feast-dev/feast/issues/6703#event-29436661974
fix: feast apply ignores ttl updates when new ttl is None or timedelt…https://github.com/saket3395/feast/commit/f9aaff6c8ea9956207dd09c12b910dfd6bdc44d5
https://docs.github.com/articles/closing-issues-via-commit-messages
f9aaff6https://github.com/saket3395/feast/commit/f9aaff6c8ea9956207dd09c12b910dfd6bdc44d5
test: cover ttl clearing in _update_metadata_fields (feast-dev#6703)https://github.com/saket3395/feast/commit/2c8a95dd6e9888b62e23e703b55e858dfa4ae562
feast-dev#6703https://github.com/feast-dev/feast/issues/6703
https://docs.github.com/articles/closing-issues-via-commit-messages
2c8a95dhttps://github.com/saket3395/feast/commit/2c8a95dd6e9888b62e23e703b55e858dfa4ae562
saket3395https://github.com/saket3395
on Aug 14, 2026https://github.com/feast-dev/feast/issues/6703#event-29437209322
fix: feast apply ignores ttl updates when new ttl is None or timedelt…https://github.com/saket3395/feast/commit/b20d2f6a5710e7ba6bca1fcccb7d09dec494d13c
https://docs.github.com/articles/closing-issues-via-commit-messages
b20d2f6https://github.com/saket3395/feast/commit/b20d2f6a5710e7ba6bca1fcccb7d09dec494d13c
test: cover ttl clearing in _update_metadata_fields (feast-dev#6703)https://github.com/saket3395/feast/commit/2ddc0900e42da2b38bbbca8a5a86ed69ff9ebcf6
feast-dev#6703https://github.com/feast-dev/feast/issues/6703
https://docs.github.com/articles/closing-issues-via-commit-messages
2ddc090https://github.com/saket3395/feast/commit/2ddc0900e42da2b38bbbca8a5a86ed69ff9ebcf6
ntkatholehttps://github.com/ntkathole
on Aug 14, 2026https://github.com/feast-dev/feast/issues/6703#event-29440305995
fix: feast apply ignores ttl updates when new ttl is None or timedelt…https://github.com/saket3395/feast/commit/73d3956a6731db36be28fa91418999c0b2fea919
https://docs.github.com/articles/closing-issues-via-commit-messages
73d3956https://github.com/saket3395/feast/commit/73d3956a6731db36be28fa91418999c0b2fea919
test: cover ttl clearing in _update_metadata_fields (feast-dev#6703)https://github.com/saket3395/feast/commit/cc340e87b775bae24af106a74611fead18bc5c5f
feast-dev#6703https://github.com/feast-dev/feast/issues/6703
https://docs.github.com/articles/closing-issues-via-commit-messages
cc340e8https://github.com/saket3395/feast/commit/cc340e87b775bae24af106a74611fead18bc5c5f
ntkatholehttps://github.com/ntkathole
completedhttps://github.com/feast-dev/feast/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6709https://github.com/feast-dev/feast/pull/6709
on Aug 14, 2026https://github.com/feast-dev/feast/issues/6703#event-29440314744
ntkatholehttps://github.com/ntkathole
on Aug 14, 2026https://github.com/feast-dev/feast/issues/6703#event-29440463793
fix: Feast apply silently ignoring ttl updates to None or timedelta(0) (https://github.com/HSarwat/feast/commit/97b0f25ea2afa442b9e2056eb66545f212b58a22
https://docs.github.com/articles/closing-issues-via-commit-messages
97b0f25https://github.com/HSarwat/feast/commit/97b0f25ea2afa442b9e2056eb66545f212b58a22
franciscojavierarceohttps://github.com/franciscojavierarceo
on Aug 21, 2026https://github.com/feast-dev/feast/issues/6703#event-29781433852
chore(release): release 0.66.0https://github.com/feast-dev/feast/commit/1d5be950cf718a674cb01eaf0fd0ad6f0a4c6335
1d5be95https://github.com/feast-dev/feast/commit/1d5be950cf718a674cb01eaf0fd0ad6f0a4c6335
HSarwathttps://github.com/HSarwat
on Aug 22, 2026https://github.com/feast-dev/feast/issues/6703#event-29844848910
fix: Feast apply silently ignoring ttl updates to None or timedelta(0) (https://github.com/HSarwat/feast/commit/dfddd8501ce1d5b246fc00e835c37fab1dd3c5e3
https://docs.github.com/articles/closing-issues-via-commit-messages
dfddd85https://github.com/HSarwat/feast/commit/dfddd8501ce1d5b246fc00e835c37fab1dd3c5e3
Michie-hubhttps://github.com/Michie-hub
on Aug 31, 2026https://github.com/feast-dev/feast/issues/6703#event-30282804039
fix: Feast apply silently ignoring ttl updates to None or timedelta(0) (https://github.com/Michie-hub/feast/commit/0c5753b234acbd5ab5852012ba7a2f0f1073eb69
https://docs.github.com/articles/closing-issues-via-commit-messages
0c5753bhttps://github.com/Michie-hub/feast/commit/0c5753b234acbd5ab5852012ba7a2f0f1073eb69
chore(release): release 0.66.0https://github.com/Michie-hub/feast/commit/a29c9231976fd7c68e51570047f9517f06579041
https://docs.github.com/articles/closing-issues-via-commit-messages
a29c923https://github.com/Michie-hub/feast/commit/a29c9231976fd7c68e51570047f9517f06579041
Sign up for freehttps://github.com/signup?return_to=https://github.com/feast-dev/feast/issues/6703
Sign in to commenthttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6703
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.