Skip to content

Commit

Permalink
fix(bigquery): ensure that the identifier is parsed according to the …
Browse files Browse the repository at this point in the history
…dialect
  • Loading branch information
cpcloud committed Oct 22, 2023
1 parent 284be36 commit f5bb555
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ibis/backends/bigquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f5bb555

Please sign in to comment.