Skip to content

Commit eda3219

Browse files
Implement column-level PII protection for sample collection (#833)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: arbiv <[email protected]>
1 parent 1671dc0 commit eda3219

File tree

5 files changed

+690
-5
lines changed

5 files changed

+690
-5
lines changed

integration_tests/tests/dbt_project.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def test(
149149
test_vars: Optional[dict] = None,
150150
elementary_enabled: bool = True,
151151
model_config: Optional[Dict[str, Any]] = None,
152+
column_config: Optional[Dict[str, Any]] = None,
152153
*,
153154
multiple_results: bool = False,
154155
) -> Union[Dict[str, Any], List[Dict[str, Any]]]:
@@ -173,9 +174,10 @@ def test(
173174
if test_column is None:
174175
table_yaml["tests"] = [{dbt_test_name: test_args}]
175176
else:
176-
table_yaml["columns"] = [
177-
{"name": test_column, "tests": [{dbt_test_name: test_args}]}
178-
]
177+
column_def = {"name": test_column, "tests": [{dbt_test_name: test_args}]}
178+
if column_config:
179+
column_def["config"] = column_config
180+
table_yaml["columns"] = [column_def]
179181

180182
temp_table_ctx: Any
181183
if as_model:

0 commit comments

Comments
 (0)