soda-core icon indicating copy to clipboard operation
soda-core copied to clipboard

Contract check-level filters

Open tombaeyens opened this issue 10 months ago • 2 comments

tombaeyens avatar Apr 16 '24 10:04 tombaeyens

SAS-3247

tools-soda avatar Apr 16 '24 10:04 tools-soda

See this section in the code

https://github.com/sodadata/soda-core/blob/807866557c46e678137042ab5dbf0e4e106e0225/soda/contracts/soda/contracts/contract.py#L59

        # TODO explain filter_expression_sql, default filter and named filters
        # filter name must part of the identity of the metrics
        #   - no filter part if no filter is specified
        #   - "default" is the filter name if there is only a default specified with "filter_expression_sql"
        #   - {filter_name} if a filter is activated from a named map of filters
        self.filter: str | None = None

        self.filter_sql: str | None = None

tombaeyens avatar Jun 28 '24 06:06 tombaeyens