Skip to content

Add option to ignore columns in equality test #734

@brunocostalopes

Description

@brunocostalopes

Describe the feature

I would like to be able to specify a list of columns to exclude on an equality test.

Describe alternatives you've considered

We can of course use compare_columns to list all columns, except the ones we want to exclude, but this leads to large yml files, difficult to maintain as our models evolve.

Additional context

Not database specific, it can be implemented across all different databases.

Who will this benefit?

This feature would be great for anyone who wants to compare data across environments where, for example, some of the fields are masked in one of the environments.
Another scenario where this can be useful is when updating the logic on a small subset of fields in a model and wanting to compare the development model with the production one, but obviously excluding the updated fields (which are expected to be different)

Are you interested in contributing this feature?

I have implemented this locally already. Happy to raise a PR if people think this feature is helpful.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions