Skip to content

Commit

Permalink
Allow backtick for table name
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-norture committed Oct 8, 2024
1 parent 227511d commit 2db23d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbtmetabase/_exposures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 2db23d5

Please sign in to comment.