GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: source-first UDF rehydrate, Postgres empty-cols SELECT *, online allow_cache=False by aniketpalu · Pull Request #6620 · feast-dev/feast

Conversation

@aniketpalu

@aniketpalu aniketpalu commented Jul 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

  • F1/F2: Prefer registry body_text over dill.loads(body) when restoring UDFs (udf_rehydrate.resolve_udf), including Spark transform execute and Pandas/Python/Ray from_proto. Strip leading decorators (e.g. @on_demand_feature_view) before exec so ODFV source rehydrates cleanly.
  • F3: Postgres offline store treats empty feature_name_columns as “all columns” (SELECT * / DISTINCT ON … a.*), matching BatchFeatureView python/pandas mode and Ray semantics.
  • F5a: Online request path always reads FVs with allow_cache=False so FeatureViewState gates see AVAILABLE_ONLINE after materialize (no stale MATERIALIZING/GENERATED 500s).

Out of scope (separate PR)

  • F5b (async materialize: only reset still-MATERIALIZING FVs on failure) depends on /materialize-async from remote materialization (feat: Add remote materialization support via feature server #6590) and is not included here.

Test plan

  • Unit: test_udf_rehydrate.py (source preference, decorator strip, dill fallback)
  • Unit: Postgres empty feature_cols → SELECT * / star path
  • E2E (optional): SparkApplication UDF materialize + ODFV online on mixed Python images

Made with Cursor

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aniketpalu @cursoragent
fix: prefer UDF source over dill; Postgres SELECT *; fresh online reg…
35dca23
…istry reads

Rehydrate BatchFeatureView/ODFV callables from body_text (strip leading
decorators) before dill.loads to avoid Spark driver exit 139 and
cross-Python serve failures. Treat empty Postgres feature_name_columns as
SELECT *. Disable registry cache on the online request path so FeatureView
state gates see AVAILABLE_ONLINE immediately after materialize.

Co-authored-by: Cursor <[email protected]>
@aniketpalu
aniketpalu requested a review from a team as a code owner July 20, 2026 15:01
github-advanced-security[bot]
github-advanced-security Bot found potential problems Jul 20, 2026
View reviewed changes
Comment thread sdk/python/feast/transformation/udf_rehydrate.py
# dill.source.getsource() output. They are not needed to recover the callable and
# usually reference names unavailable at rehydrate time.
_DECORATOR_BLOCK = re.compile(
r"^(?:\s*@[\s\S]*?\n)+(?=\s*(?:async\s+)?def\s+)",
@aniketpalu
aniketpalu marked this pull request as draft July 20, 2026 15:03
@aniketpalu aniketpalu closed this Jul 20, 2026
@codecov-commenter

codecov-commenter commented Jul 20, 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 45.94%. Comparing base (294efad) to head (35dca23).
❗ 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    #6620      +/-   ##
==========================================
- Coverage   45.94%   45.94%   -0.01%     
==========================================
  Files         412      412              
  Lines       48864    48853      -11     
  Branches     6913     6913              
==========================================
- Hits        22452    22444       -8     
+ Misses      24859    24856       -3     
  Partials     1553     1553              
Flag Coverage Δ *Carryforward flag
go-feature-server 30.58% <ø> (ø)
python-unit 47.24% <ø> (-0.01%) ⬇️ Carriedforward from 294efad

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
sdk/python/feast/feature_server.py 62.84% <ø> (ø)
...ast/infra/compute_engines/spark/feature_builder.py 0.00% <ø> (ø)
.../python/feast/infra/compute_engines/spark/nodes.py 25.92% <ø> (-0.15%) ⬇️
..._stores/contrib/postgres_offline_store/postgres.py 44.47% <ø> (-0.61%) ⬇️
...thon/feast/transformation/pandas_transformation.py 72.22% <ø> (-0.51%) ⬇️
...thon/feast/transformation/python_transformation.py 86.79% <ø> (-0.25%) ⬇️
.../python/feast/transformation/ray_transformation.py 0.00% <ø> (ø)
sdk/python/feast/utils.py 76.83% <ø> (-0.04%) ⬇️

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 294efad...35dca23. 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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@github-advanced-security github-advanced-security[bot] github-advanced-security[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@aniketpalu @codecov-commenter @github-advanced-security
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.