add relationship fields
This commit is contained in:
@@ -257,13 +257,15 @@ 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", "")),
|
||||
*tuple(str(item) for item in getattr(profile, "entity_fields", ())),
|
||||
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", ())),
|
||||
*tuple(str(getattr(relation, "left", "")) for relation in getattr(profile, "relationship_fields", ())),
|
||||
*tuple(str(getattr(relation, "right", "")) for relation in getattr(profile, "relationship_fields", ())),
|
||||
)
|
||||
if field
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user