diff --git a/metaphor/common/sql/table_level_lineage/table_level_lineage.py b/metaphor/common/sql/table_level_lineage/table_level_lineage.py index b4c9f07d..874d551d 100644 --- a/metaphor/common/sql/table_level_lineage/table_level_lineage.py +++ b/metaphor/common/sql/table_level_lineage/table_level_lineage.py @@ -150,6 +150,11 @@ def extract_table_level_lineage( if not _is_truncated_insert_into_with_values(sql): logger.warning(f"Cannot parse sql with SQLGlot, query_id = {query_id}") return Result() + except RecursionError: + logger.warning( + f"Cannot parse sql with SQLGlot (max recursion level exceeded), query_id = {query_id}" + ) + return Result() try: return Result( diff --git a/pyproject.toml b/pyproject.toml index 1a0bf9af..61c0763b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "metaphor-connectors" -version = "0.14.102" +version = "0.14.103" license = "Apache-2.0" description = "A collection of Python-based 'connectors' that extract metadata from various sources to ingest into the Metaphor app." authors = ["Metaphor "]