From f5bb555ba781f3c46266019594fc90155f51e311 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sun, 22 Oct 2023 11:26:45 -0400 Subject: [PATCH] fix(bigquery): ensure that the identifier is parsed according to the dialect --- ibis/backends/bigquery/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ibis/backends/bigquery/__init__.py b/ibis/backends/bigquery/__init__.py index 957d254593d6..38606f2ff6b4 100644 --- a/ibis/backends/bigquery/__init__.py +++ b/ibis/backends/bigquery/__init__.py @@ -562,9 +562,13 @@ def list_tables( as_of="7.1", removed_in="8.0", ) - database = sg.parse_one(database, into=sg.exp.Table).sql(dialect=self.name) + database = sg.parse_one(database, into=sg.exp.Table, read=self.name).sql( + dialect=self.name + ) elif database is None and schema is not None: - database = sg.parse_one(schema, into=sg.exp.Table).sql(dialect=self.name) + database = sg.parse_one(schema, into=sg.exp.Table, read=self.name).sql( + dialect=self.name + ) else: database = sg.table(schema, db=database).sql(dialect=self.name) or None