You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dbt: BigQuery wildcard sources (events_*) never produce dbt lineage #38703
A dbt source whose identifier is a BigQuery wildcard table, such as GA4's events_*, never produces dbt lineage. Every model that selects from it logs:
Unable to find the table 'my_bq.my-project.analytics_123.events_*' in OpenMetadata. Please check if the table exists and is ingested in OpenMetadata ...
The parent is then dropped from the model's upstream list, so its dbt lineage edges are lost.
This happens even with shardedTables enabled, where BigQuery metadata ingestion catalogs the shards as events_yyyymmdd and events_intraday_yyyymmdd (#16640 / #36867, backported to 2.0 in #37002). The cause is that dbt looks up source identifiers literally (#35683): * is escaped, so the lookup asks for a table named exactly events_*. The BigQuery resolver's wildcard and shard-family matching never runs, and create_dbt_lineage's wildcard fan-out never sees the upstream.
To Reproduce
Ingest a BigQuery project that has a GA4 export (events_YYYYMMDD and events_intraday_YYYYMMDD shards), with or without shardedTables.
Declare a dbt source ga4.events with identifier: events_*, and a model that selects from it.
Run dbt ingestion against that BigQuery service.
The model has no dbt lineage from any events_… table, and the log shows the warning above.
Expected behavior
A BigQuery wildcard source is an upstream of every table it reads (both shard families, plus any ordinary events_… table), as the lineage workflow already does for events_* in query logs. When the match overflows the catalog-wildcard limit, the prior lineage is kept and a warning is reported. Tests and exposures still need exactly one table, and engines without wildcard tables keep treating the identifier literally.
Activity