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
dbt test with include_missing_columns fails with Unrecognized name: _PARTITIONTIME error.
Error message
dbt test
tests/unit/pv.sql
Unrecognized name: _partitiondate at [21:9]
Sample Code
Staging
models/staging/stg_datafeed.sql
with
source as (
select*
, _partitiondate as partitiondate
from
{{ source('datafeed', 'datafeed_ap') }}
)
select
session_id
, date_time
, pagename
from
source
Model
models/pv.sql
with
source as (
select*from
{{ ref('stg_datafeed') }}
)
select distinct
session_id
, count(*) as pv
from
source
group by
session_id
dbt test with
include_missing_columns
fails withUnrecognized name: _PARTITIONTIME
error.Error message
dbt test tests/unit/pv.sql Unrecognized name: _partitiondate at [21:9]
Sample Code
Staging
models/staging/stg_datafeed.sql
Model
models/pv.sql
Test
tests/unit/pv.sql
The text was updated successfully, but these errors were encountered: