From 2db23d5b45267a792aaeed89e2132e87f1b4f4a9 Mon Sep 17 00:00:00 2001 From: Olivier Norture Date: Tue, 8 Oct 2024 11:32:10 +0000 Subject: [PATCH] Allow backtick for table name --- dbtmetabase/_exposures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbtmetabase/_exposures.py b/dbtmetabase/_exposures.py index f4c5bbdd..93076fdf 100644 --- a/dbtmetabase/_exposures.py +++ b/dbtmetabase/_exposures.py @@ -25,7 +25,7 @@ _RESOURCE_VERSION = 2 # Extracting table in `from` and `join` clauses (won't recognize some valid SQL, e.g. `from "table with spaces"`) -_EXPOSURE_PARSER = re.compile(r"[FfJj][RrOo][OoIi][MmNn]\s+([\w.\"]+)") +_EXPOSURE_PARSER = re.compile(r"[FfJj][RrOo][OoIi][MmNn]\s+([\w.\"`]+)") _CTE_PARSER = re.compile( r"[Ww][Ii][Tt][Hh]\s+\b(\w+)\b\s+as|[)]\s*[,]\s*\b(\w+)\b\s+as" )