From e9aa6809651addceb43a3fd07b34edffbe3aed98 Mon Sep 17 00:00:00 2001 From: Olivier Norture Date: Wed, 9 Oct 2024 00:10:47 +0200 Subject: [PATCH] Allow backtick for table name (#279) --- dbtmetabase/_exposures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbtmetabase/_exposures.py b/dbtmetabase/_exposures.py index f4c5bbd..93076fd 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" )