You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create some mechanism to use a macro in a schema.yml file. Eg:
-- macros.sql-- If a table contains any 👎 `{{expression}}s, then count(*) > 1 and the test fails!
{% macro all_thumbs_up(schema, table, expression) %}
selectcount(*) from {{schema}}.{{ table }}
where {{ expression }} != 👍
{% endmacro %}
We need to give this some more thought w/r/t how to handle macros with > 1 argument. Also, should macro-test names be namespaced somehow? Neat, powerful idea though
The text was updated successfully, but these errors were encountered:
create some mechanism to use a macro in a
schema.yml
file. Eg:And in a
schema.yml
file:We need to give this some more thought w/r/t how to handle macros with > 1 argument. Also, should macro-test names be namespaced somehow? Neat, powerful idea though
The text was updated successfully, but these errors were encountered: