Repository navigation
fix(server): export and profile jobs take the entity type from the dataset row (#1371) - #1414
Merged
Merged
Conversation
…taset row (#1371) The export and profile tasks read lake_env[ER_ENTITY_TYPE], and nothing ever wrote it, so an account dataset exported the person golden schema (an empty file on an account lake) and profiled the person relations. pg::lake_env_for_job, the one resolver behind both the pod work order and the in-process dispatcher, now stamps ER_ENTITY_TYPE from the dataset row. The row is authoritative: it is fixed at creation, and publish refuses a disagreeing config. The Standardized and Golden edges' RELATIONS now name the account tables too. pg_export_profile_acct_dag runs an account golden export and a standardized profile through the DAG: the export carries company_name/domain and no person column, and the profile covers the account standardized columns. With the stamp removed, the export header is empty and the test fails. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 29, 2026 06:25 — with
GitHub Actions
Inactive
This branch was previously deployed
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.
Closes #1371
What
pg::lake_env_for_job, the single resolver behind the pod work order and the in-process dispatcher, stampsER_ENTITY_TYPEinto a dataset job's lake env from the dataset row.StandardizedandGoldenedges'RELATIONSalso nameacct_int_std_records,acct_golden_recordsandacct_golden_lineage. That fixes the metadata, as the ticket asks.pg_export_profile_acct_dag.Why
The export and profile tasks read
lake_env["ER_ENTITY_TYPE"], and nothing wrote it, so an account dataset exported the person golden schema and profiled the person relations. The row is the authority: it is fixed at creation, and publish refuses a config that disagrees. Setting it at the resolver covers both tasks and both executors at once.Proof
pg_export_profile_acct_dag: an operator-createdentity_type: accountdataset with its config published andacct_baseimported. A golden export runs through the DAG and downloads withcompany_nameanddomainand nogiven_name, with rows. A standardized profile runs through the DAG and coverscompany_nameanddomain_norm, with no person column.the account golden schema:(an empty header, from the person export on an account lake).cargo test -p er-server --test main dag_(8) and the edge test: pass.make check: exit 0.Risk & rollback
The env gains one key for dataset jobs. A person dataset now carries
ER_ENTITY_TYPE=person, which every reader treats as the default. Rollback isgit revert <merge-sha>.Post-merge ledger
Closed by: merge
fe75ede1(squash of #1414)mainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not:
fe75ede1: rust 46233419989, frontend 46233419993, infra 46233420009, devcontainer 46233420095, images 46233419987 all success.imagesbuilt, or correctly never ran because nothing that goes intoan image changed: built: images 46233419987 success, er-api
fe75ede1 -> sha256:7f79ca62…. er-web reused, verified unchanged underfrontend.deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: deploy 46233708400. The API launch gate printed
production now serves the contract of fe75ede1b88bf67d8e701605c3fc30ec98c2fcd5.deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: deploy green. drift 46231663846 is knowingly red on
alert path (a confirmed subscriber), which waits on the operator's SNS email confirmation (The er-alerts SNS email subscription has never been confirmed — 19 armed alarms reach nobody #1107) and is unrelated to this change.Donethrough the automation rather than byhand, and the issue closed: Export and profile jobs pick the entity type from an env key nothing sets #1371 CLOSED by the merge, Product Roadmap → Done via automation.
(a skill, a reference, memory) — or nothing new was learned: the dataset row's entity type now reaches every task through
pg::lake_env_for_jobasER_ENTITY_TYPE. That is recorded in the PR and in the code comment there; nothing else new was learned.Specific to this change
🤖 Generated with Claude Code