Repository navigation
fix: Read only the known project metadata keys in the SQL registry - #391
Merged
Merged
Conversation
get_project_metadata_model, get_all_project_metadata and _list_project_metadata selected every feast_metadata row of a project (or of the whole table) and then used only PROJECT_UUID and LAST_UPDATED_TIMESTAMP. Feature server reports are also stored in feast_metadata, so with reports on, up to 50 report rows (~750 KB) per project were fetched on every REST registry request that resolves a project, and GET /projects scanned them all. Filter on the two keys in SQL. Results are unchanged; a project that only has other keys no longer appears in project metadata listings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ubuntu-latest moved to 26.04, whose default JDK can't start PySpark 3.5
("getSubject is not supported"), failing every Spark unit test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
piket
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this PR does / why we need it:
get_project_metadata_model,get_all_project_metadataand_list_project_metadataselect everyfeast_metadatarow of a project, or of the whole table, and then use onlyproject_uuidandlast_updated_timestamp.Feature server reports (#389) are also stored in
feast_metadata. With reports on, a project can hold up to 50 report rows, about 750 KB, all of which were fetched on these reads:get_project_metadata_modelruns on every REST registry request that looks up a project.get_all_project_metadataruns onGET /projectsand scanned the whole table.The three reads now filter on the two keys in SQL (
metadata_key IN (...)). Results are unchanged. A project that has only other keys no longer appears in project metadata listings, so report rows can't create a phantom project.Tests (
TestProjectMetadataReadsOnlyKnownKeys):With the change reverted, 3 of the 4 fail. The fourth checks that results are unchanged, so it passes either way.
tests/unit/infra/registryandtests/unit/permissions(663 tests) pass, and ruff and mypy are clean.Which issue(s) this PR fixes:
EAPC-23485 (follow-up to #389)
🤖 Generated with Claude Code