Skip to content

Commit

Permalink
fix(bigquery): only register memtable if obj is not None (#9268)
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth authored May 29, 2024
1 parent 32f8a66 commit f175d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis/backends/bigquery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,8 +1036,8 @@ def create_table(
if obj is not None and not isinstance(obj, ir.Table):
obj = ibis.memtable(obj, schema=schema)

# This is a no-op if there aren't any memtables
self._register_in_memory_tables(obj)
if obj is not None:
self._register_in_memory_tables(obj)

if temp:
dataset = self._session_dataset.dataset_id
Expand Down

0 comments on commit f175d0a

Please sign in to comment.