Area: UI Issues
Sub-Area: Lineage Graph Rendering
Applies to: OSS + Cloud
Issue
The lineage graph shows the wrong layout. The home (focal) node sits at the far left of the canvas. Its upstream nodes render on the right side, mixed in with the downstream nodes. The expected layout is upstream on the left and downstream on the right.
This happens only in browsers whose language formats negative numbers with the Unicode minus sign (U+2212, −) instead of the ASCII hyphen-minus (U+002D, -). The same page renders correctly for users whose browser uses an English locale.
To check whether your browser is affected, open the browser developer console on any page and run:
(-1).toLocaleString().charCodeAt(0)
A result of 8722 means your browser uses the Unicode minus sign and the lineage graph shows this bug on affected DataHub versions. A result of 45 means your browser uses the ASCII hyphen-minus and is not affected.
Error Messages
No error message appears. The only symptom is the wrong layout of the lineage graph.
You Might Be Asking
- Why are upstream nodes on the right side of my lineage graph instead of the left?
- Why does the lineage graph look right for my colleague but wrong for me?
- Why did my lineage layout change after I switched browsers or browser language?
- Which DataHub version fixes this?
Solution
Permanent Fix
Upgrade the DataHub server. The fix is in the DataHub web UI, so it ships with the server release:
- DataHub Cloud: fixed in v2.0.0 and later.
- DataHub OSS (self-hosted): fixed in v1.7.0 and later. The 1.6.0.x patch releases do not include the fix.
The acryl-datahub CLI and Python SDK play no part in this bug. Upgrading them does not change the lineage graph.
If you use DataHub Cloud v2.0.x or v2.1.x and still see this layout, contact DataHub Support.
Once you run a fixed version, no browser language change is needed.
Workaround on Older Versions
Change your browser display language to English (United States), then reload the DataHub lineage page. Run the console check above again. When it returns 45, the lineage graph renders upstream nodes on the left.
You can also drag nodes on the lineage canvas to move them by hand. This changes only your current view.
Root Cause
The lineage graph assigns each node a layer number. Upstream layers get negative numbers (for example -1, -2). Affected versions turned these numbers into strings with JavaScript's toLocaleString(), which uses the browser locale. The layout code then treated a layer as upstream only when its string started with the ASCII hyphen-minus:
// Affected versions (simplified)
const layer = `${main.toLocaleString()}.${mini}`;
const upstreamLayers = layers.filter((layer) => layer.startsWith('-'));
const downstreamLayers = layers.filter((layer) => !layer.startsWith('-'));
In a locale that writes −1 with the Unicode minus sign, no upstream layer passes the startsWith('-') check. Every upstream layer lands in the downstream group and renders to the right of the home node.
The fix builds the layer string with String(main), which always uses the ASCII hyphen-minus no matter the browser locale.
Additional Notes
- The problem is client-side only. Server configuration, ingestion and your metadata do not cause it.
- Lineage relationships stored in DataHub are correct. Only the drawing of the graph is wrong.