Skip to content

Commit 3a8367c

Browse files
fix: adding support to initialize with empty metadata columns (googleapis#99)
* Adding null check on the metadata columns * style: formatting
1 parent 936ef1c commit 3a8367c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/langchain_google_spanner/vector_store.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,10 @@ def _generate_sql(
383383
)
384384

385385
configs = [id_column, content_column, embedding_column]
386-
configs.extend(column_configs)
386+
387+
if column_configs is not None:
388+
configs.extend(column_configs)
389+
387390
column_configs = configs
388391

389392
if primary_key is None:

0 commit comments

Comments
 (0)