Skip to content

[BUG] #15

Description

@geo7

Is this a new bug in dbt-expectations?

  • I believe this is a new bug in dbt-expectations
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

Using :

dbt_expectations.expect_table_columns_to_match_set:
  column_list: ['a', 'b']

Results in an error, in the generated .sql the relation_columns CTE is empty:

   14 ), relation_columns as (
   15
   16 ········
   17     ),
   18     input_columns as (
   19
   20 ········

Expected Behavior

Columns from the relation

Steps To Reproduce

Try using the test with a postgres table

Relevant log output

Environment

- OS:
- Python:
- dbt:
- dbt-expectations:

Which database adapter are you using with dbt?

Note: dbt-expectations currently does not support database adapters other than the ones listed below.

  • Postgres

Additional Context

sorry I don't have time to create a repro - hopefully this is enough for someone familiar with the repo to spot / understand where the fix is, failing that feel free to close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions