Skip to content

Commit 002ac82

Browse files
authored
fix(ingest/athena): Fix DeprecationWarning: invalid escape sequence '\s' for testing (datahub-project#14267)
1 parent 3cf6e63 commit 002ac82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metadata-ingestion/src/datahub/ingestion/source/sql/athena_properties_extractor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ class AthenaPropertiesExtractor:
9999
"""A class to extract properties from Athena CREATE TABLE statements."""
100100

101101
CREATE_TABLE_REGEXP = re.compile(
102-
"(CREATE TABLE[\s\n]*)(.*?)(\s*\()", re.MULTILINE | re.IGNORECASE
102+
r"(CREATE TABLE[\s\n]*)(.*?)(\s*\()", re.MULTILINE | re.IGNORECASE
103103
)
104104
PARTITIONED_BY_REGEXP = re.compile(
105-
"(PARTITIONED BY[\s\n]*\()((?:[^()]|\([^)]*\))*?)(\))",
105+
r"(PARTITIONED BY[\s\n]*\()((?:[^()]|\([^)]*\))*?)(\))",
106106
re.MULTILINE | re.IGNORECASE,
107107
)
108108

0 commit comments

Comments
 (0)