Skip to content

Export and profile jobs pick the entity type from an env key nothing sets #1371

Done

Description

@athvin

Found by the #547 support audit. The export and profile DAG tasks read lake_env["ER_ENTITY_TYPE"], and a repo-wide search finds nothing that writes it, so account datasets export with the person golden schema and profile against person relations. create_export does not pass dataset.entity_type either. export_write.rs misses it because it calls exports::write with the type directly.

Also: the Standardized and Golden DAG edge RELATIONS (dags/edges.rs) name only person tables. That is wrong metadata, not a runtime bug; fix it alongside.

Done when both jobs take the type from the dataset row, and a pg test runs an account export and an account profile job through the DAG.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions