Skip to content

Commit 369bffc

Browse files
authored
Override test_sample_row_count by test config
1 parent 8d91cf6 commit 369bffc

File tree

1 file changed

+3
-0
lines changed
  • macros/edr/materializations/test

1 file changed

+3
-0
lines changed

macros/edr/materializations/test/test.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
{% macro handle_dbt_test(flattened_test, materialization_macro) %}
5252
{% set result = materialization_macro() %}
5353
{% set sample_limit = elementary.get_config_var('test_sample_row_count') %}
54+
{% if "meta" in flattened_test and "test_sample_row_count" in flattened_test["meta"] %}
55+
{% set sample_limit = flattened_test["meta"]["test_sample_row_count"] %}
56+
{% endif %}
5457

5558
{% set disable_test_samples = false %}
5659
{% if "meta" in flattened_test and "disable_test_samples" in flattened_test["meta"] %}

0 commit comments

Comments
 (0)