ConflictingFeatureViewNames raised across projects when a LabelView shares a name with another feature view type
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 85/100
Direzione di ricerca
Inizia in sdk/python/feast/infra/registry/registry.py, in corrispondenza di Registry._existing_feature_view_names_to_fvs, e confronta la ricerca di LabelView con i filtri di progetto degli altri tipi di vista. Aggiungi un test di regressione accanto a test_cross_project_name_does_not_conflict_batch_vs_stream che copra una LabelView e una FeatureView con lo stesso nome in progetti diversi, compresa la riapplicazione della FeatureView. Il lavoro è completo quando entrambe le operazioni riescono senza conflitti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Expected Behavior
Feature view names only need to be unique within a project. A LabelView named shared_name in project_a should not conflict with a FeatureView named shared_name in project_b, and should not block re-applying that FeatureView.
Current Behavior
With the file-based registry, apply_feature_view raises ConflictingFeatureViewNames when a LabelView with the same name exists in a different project.
Registry._existing_feature_view_names_to_fvs (sdk/python/feast/infra/registry/registry.py) filters on-demand, batch and stream feature views by spec.project == project, but builds its LabelView dict from every project:
lvs = {lv.spec.name: lv for lv in self.cached_registry_proto.label_views}
That dict is merged last, so a LabelView in another project is treated as an existing view of a different type. Re-applying an existing FeatureView in its own project is also rejected once a same-named LabelView exists in another project, because the LabelView entry overwrites it in the merged dict.
This looks like the same problem fixed for the other view types in #6209 / #6369; the LabelView lookup was added afterwards (#6292) without the project filter.
Steps to reproduce
import tempfile
from pathlib import Path
from feast import Entity, Field, FeatureView
from feast.infra.offline_stores.file_source import FileSource
from feast.infra.registry.registry import Registry
from feast.labeling.label_view import LabelView
from feast.repo_config import RegistryConfig
from feast.types import Int64, String
from feast.value_type import ValueType
registry = Registry(
"demo", RegistryConfig(path=str(Path(tempfile.mkdtemp()) / "registry.db")), None
)
entity = Entity(name="driver", value_type=ValueType.STRING, join_keys=["driver_id"])
registry.apply_entity(entity, "project_a")
registry.apply_entity(entity, "project_b")
label_view = LabelView(
name="shared_name",
entities=[entity],
schema=[Field(name="label", dtype=String)],
)
feature_view = FeatureView(
name="shared_name",
entities=[entity],
schema=[Field(name="value", dtype=Int64)],
source=FileSource(path="data.parquet", timestamp_field="ts"),
)
registry.apply_feature_view(label_view, "project_a")
registry.apply_feature_view(feature_view, "project_b") # raises
feast.errors.ConflictingFeatureViewNames: The feature view name: shared_name
refers to feature views of different types.
Applying the FeatureView in project_b first, then the LabelView in project_a, and then re-applying the FeatureView in project_b fails the same way.
Specifications
- Version: master at 9b45df0 (0.69.0)
- Platform: Windows 11, Python 3.13.9
- Subsystem: Python SDK, file registry (
feast/infra/registry/registry.py)
Possible Solution
Filter the LabelView dict by project like the other three:
lvs = {
lv.spec.name: lv
for lv in self.cached_registry_proto.label_views
if lv.spec.project == project
}
I can open a PR with a regression test next to test_cross_project_name_does_not_conflict_batch_vs_stream.
- Lingua principale
- Python
- Stelle
- 7.4k
- Fork
- 1.5k
- Merge medio
- 2g 6h
- PR unite (30g)
- 107
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di feast-dev/feast
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDLForse già presa @liron-velocity l’ha presa 50 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource fieldForse già presa @OHMFOHS l’ha presa 99 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
kind/bug priority/p2
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
feast-dev/feast#6778 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Feast UI container in a different format from ther othersForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertakind/bug priority/p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
feast-dev/feast#6725 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di feast-dev/feast
Issue simili
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobApertaaccepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
future-agi/future-agi#6392 ·
I maintainer di solito rispondono entro 1 giorno
-
memmapped_arange ignores the start value and drops the last point above the memmap thresholdForse già presa @prathameshfuke l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno