Skip to content

Commit 4313ba2

Browse files
authored
fix: Update JSON conversion (#296)
1 parent 5f051f4 commit 4313ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/langchain_google_cloud_sql_pg/async_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _search_where(
220220

221221
# construct predicate for metadata filter
222222
if filter:
223-
wheres.append("encode(metadata,'escape')::jsonb @> :metadata ")
223+
wheres.append("convert_from(metadata,'UTF8')::jsonb @> :metadata ")
224224
param_values.update({"metadata": f"{json.dumps(filter)}"})
225225

226226
# construct predicate for `before`

0 commit comments

Comments
 (0)