From f175d0aa55925d1fc8592384c9ca3f2d1fcbe0d5 Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Wed, 29 May 2024 06:52:44 -0400 Subject: [PATCH] fix(bigquery): only register memtable if obj is not None (#9268) --- ibis/backends/bigquery/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibis/backends/bigquery/__init__.py b/ibis/backends/bigquery/__init__.py index 4961a9529516..70e3dda84aa3 100644 --- a/ibis/backends/bigquery/__init__.py +++ b/ibis/backends/bigquery/__init__.py @@ -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