Skip to main content

bq-v2-field-paths

A DataHub ingestion transformer that makes column-level lineage resolve through nested BigQuery RECORD columns.

The problem

DataHub's BigQuery source spells a nested column two different ways:

  • its schema generator writes v2 paths into schemaMetadata — [version=2.0].[type=struct].[type=struct].payload.[type=long].amount
  • its SQL parser names the same column payload.amount, and that name goes straight into the schemaField URN of every fine-grained lineage edge

Because DataHub resolves a schemaField URN by exact string match against the entity's current schemaMetadata, every column edge touching a RECORD column points at a field path that does not exist, and the UI silently draws nothing. Flat scalar columns render only because their two spellings coincide.

The mapping is not in doubt — the SQL parser derives it correctly, even through expressions. Only the spelling is wrong. This transformer rewrites it.

For a table whose real columns all live inside one RECORD — anything landed by Debezium CDC, for instance — that is the difference between no column lineage and complete column lineage.

Usage

transformers:
  - type: "bq_v2_field_paths"
    config: {}

transformers is a top-level key in the recipe, a sibling of source.

Anything it cannot map with certainty is left untouched: a dataset whose schema it cannot find, or two v2 paths that reduce to the same simplified name. It logs a one-line summary at end of stream saying how many URNs it rewrote, how many were already valid, and how many it skipped.

Config

key default meaning
platform bigquery only rewrite URNs on this data platform
use_graph_fallback true look schemas up in DataHub when not seen in the stream
max_unmapped_logged 20 cap on distinct unmapped columns named in the summary

Metadata

Release files for bq-v2-field-paths 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bq-v2-field-paths 0.1.0
File Size Uploaded Provenance Actions
bq_v2_field_paths-0.1.0.tar.gz 11.0 kB Without provenance Details for bq_v2_field_paths-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bq-v2-field-paths 0.1.0
File Interpreter ABI Platform Actions
bq_v2_field_paths-0.1.0-py3-none-any.whl Python 3 none any Details for bq_v2_field_paths-0.1.0-py3-none-any.whl

Total release size: 21.5 kB

Release files / bq_v2_field_paths-0.1.0.tar.gz

Download URL bq_v2_field_paths-0.1.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b553a04bd817702783b201d2d5e47856d5909ee09d878f2e3b4b92558afa93ab
BLAKE2b-256 checksum
How to use checksums
28a4bcdaf41c050ddf29c54439382e52f9001e2bd883e1473e4c340dfb57ce22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bq_v2_field_paths-0.1.0-py3-none-any.whl

Download URL bq_v2_field_paths-0.1.0-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38ac7020dd4b67d0468072dab18548c6cd9068a2032951975ed6ca1740189efd
BLAKE2b-256 checksum
How to use checksums
207601d8a991933c225b0e309889cd4fa894ff088724a05e0f197fe52f4ad414
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for bq-v2-field-paths 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page