Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 0 additions & 54 deletions .github/workflows/downstreams.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/databricks/labs/dqx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


COLUMN_NORMALIZE_EXPRESSION = re.compile("[^a-zA-Z0-9]+")
COLUMN_PATTERN = re.compile(r"Column<'(.*?)(?: AS (\w+))?'>$")
COLUMN_PATTERN = re.compile(r"Column<'(.*?)(?: AS (\w+))?'>$", re.DOTALL)
INVALID_COLUMN_NAME_PATTERN = re.compile(r"[\s,;{}\(\)\n\t=]+")


Expand Down
22 changes: 22 additions & 0 deletions tests/integration/test_apply_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4542,6 +4542,18 @@ def test_apply_checks_with_sql_expression(ws, spark):
"criticality": "error",
"check": {"function": "sql_expression", "arguments": {"expression": "col1 not like \"val%\""}},
},
{
"criticality": "error",
"check": {
"function": "sql_expression",
"arguments": {
# expression with new line
"expression": """col2
not
like \"val%\""""
},
},
},
{
"criticality": "error",
"check": {
Expand Down Expand Up @@ -4580,6 +4592,16 @@ def test_apply_checks_with_sql_expression(ws, spark):
"run_id": RUN_ID,
"user_metadata": {},
},
{
"name": "not_col2_not_like_val",
Comment thread
mwojtyczka marked this conversation as resolved.
"message": "Value is not matching expression: col2 \nnot \n like \"val%\"",
"columns": None,
"filter": None,
"function": "sql_expression",
"run_time": RUN_TIME,
"run_id": RUN_ID,
"user_metadata": {},
},
{
"name": "not_col2_not_like_val",
"message": "Value is not matching expression: col2 not like 'val%'",
Expand Down
Loading