Repository navigation
Lineage: fix temp table node label (empty breadcrumb, squashed padding) on 2.0 - #36239
Conversation
Temp tables have no service, database or schema, so the node rendered a breadcrumb of empty separators. Skip breadcrumbs for temp tables, drop empty segments, and render the breadcrumb only when it has items.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Temp nodes have no breadcrumb or footer, so the leaf layout's top-only padding left the name sitting against the bottom edge.
Code Review ✅ Approved🟡 Medium risk · Suppressing empty breadcrumbs and centering temporary-table labels changes lineage presentation; misclassified nodes could lose useful location context. Hides the empty breadcrumb on temp-table lineage nodes in VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
On 2.0, temp-table lineage nodes (e.g.
tmp_order_stagingfromtempLineageTables) render an empty breadcrumb — just› ›separators under the name — because temp tables have no service / database / schema.LineageNodeLabelV1now:isTempTablenodes,<Breadcrumbs>only when there is at least one item,tw:flex tw:items-center tw:py-3!): the leaf layout's padding is top-only (8px 16px 0) and relies on the breadcrumb + footer for bottom spacing, which temp nodes don't have, so the name sat against the bottom edge.Same guard as
main(landed there inside #34551), ported on its own since that PR carries much more.Testing
LineageNodeLabelV1.test.tsx: 37/37 pass; the 2 new tests (temp node shows name only; all-empty segments render no breadcrumb) fail without the fix.tempLineageTables: temp nodes show only their name with even 12px top/bottom padding; regular nodes keep their breadcrumbs and layout.Type of change:
Checklist: