Skip to content

Commit b48afec

Browse files
author
Joseph Thomas Stalin
committed
refactor: move re import to top-level in parser.py
1 parent e810ddc commit b48afec

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • ingestion/src/metadata/ingestion/lineage

ingestion/src/metadata/ingestion/lineage/parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Lineage Parser configuration
1313
"""
1414
import hashlib
15+
import re
1516
import time
1617
import traceback
1718
from collections import defaultdict
@@ -504,8 +505,6 @@ def clean_raw_query(cls, raw_query: str) -> Optional[str]:
504505
query from logs, etc.), perform a cleaning step
505506
before passing it to the LineageRunner
506507
"""
507-
import re
508-
509508
clean_query = insensitive_replace(
510509
raw_str=raw_query,
511510
to_replace=" copy grants ", # snowflake specific

0 commit comments

Comments
 (0)