Hello I’ve implemented Slim CI with dbt-core. I have been running modified models whne PR is created or updated with following command.
dbt run --defer --models state:modified+1 --state state_file_path
I want to limit no of records in model runs to speed up CI. I have done it through custom source and ref macros. For example : [Feature] "Slim CI" but with `LIMIT 0` · Issue #4201 · dbt-labs/dbt-core · GitHub
Some of my models use dbt_utils methods where it expects Relation object.
Question : How would I apply limit in this case? Currently I pass relation parameter in my custom macro to return Relation object but I can’t limit the records.
Thanks!