Fortsatte roadmapen med multi-entity stream profiles
This commit is contained in:
@@ -227,10 +227,11 @@ def _stream_name(config: dict[str, object], stream_id: str) -> str:
|
||||
def _profile_fields(profile: object | None) -> tuple[str, ...]:
|
||||
if not profile:
|
||||
return ()
|
||||
return tuple(
|
||||
field for field in (
|
||||
str(getattr(profile, "entity_field", "")),
|
||||
str(getattr(profile, "timestamp_field", "")),
|
||||
return tuple(
|
||||
field for field in (
|
||||
str(getattr(profile, "entity_field", "")),
|
||||
*tuple(str(item) for item in getattr(profile, "entity_fields", ())),
|
||||
str(getattr(profile, "timestamp_field", "")),
|
||||
*tuple(str(item) for item in getattr(profile, "categorical_fields", ())),
|
||||
*tuple(str(item) for item in getattr(profile, "numeric_fields", ())),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user