text: select
        count(*) as failures,
        count(*) != 0 as should_warn,
        count(*) != 0 as should_error
      from (
        
      
      
  
  with dbt_test__target as (
    
    select order_id as unique_field
    from `striking-gadget-328313`.`dev`.`stg_orders`
    where order_id is not null
    
  )
  
  select
      unique_field,
      count(*) as n_records
  
  from dbt_test__target
  group by unique_field
  having count(*) > 1
  
  
  
        
      ) dbt_internal_test